Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/dev Pull up revision 1.11 (requested by elad in ticke...
details: https://anonhg.NetBSD.org/src/rev/db21601bb603
branches: netbsd-3
changeset: 576167:db21601bb603
user: tron <tron%NetBSD.org@localhost>
date: Fri Jun 10 15:29:58 2005 +0000
description:
Pull up revision 1.11 (requested by elad in ticket #389):
Don't create duplicate tables for the same device.
diffstat:
sys/dev/verified_exec.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 276a5ed2bda8 -r db21601bb603 sys/dev/verified_exec.c
--- a/sys/dev/verified_exec.c Fri Jun 10 15:29:36 2005 +0000
+++ b/sys/dev/verified_exec.c Fri Jun 10 15:29:58 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: verified_exec.c,v 1.5.2.4 2005/06/10 15:15:57 tron Exp $ */
+/* $NetBSD: verified_exec.c,v 1.5.2.5 2005/06/10 15:29:58 tron Exp $ */
/*-
* Copyright 2005 Elad Efrat <elad%bsd.org.il@localhost>
@@ -31,9 +31,9 @@
#include <sys/cdefs.h>
#if defined(__NetBSD__)
-__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.5.2.4 2005/06/10 15:15:57 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.5.2.5 2005/06/10 15:29:58 tron Exp $");
#else
-__RCSID("$Id: verified_exec.c,v 1.5.2.4 2005/06/10 15:15:57 tron Exp $\n$NetBSD: verified_exec.c,v 1.5.2.4 2005/06/10 15:15:57 tron Exp $");
+__RCSID("$Id: verified_exec.c,v 1.5.2.5 2005/06/10 15:29:58 tron Exp $\n$NetBSD: verified_exec.c,v 1.5.2.5 2005/06/10 15:29:58 tron Exp $");
#endif
#include <sys/param.h>
@@ -171,6 +171,10 @@
(struct veriexec_sizing_params *) data;
u_char node_name[16];
+ /* Check for existing table for device. */
+ if (veriexec_tblfind(params->dev) != NULL)
+ return (EEXIST);
+
/* Allocate and initialize a Veriexec hash table. */
tbl = malloc(sizeof(struct veriexec_hashtbl), M_TEMP,
M_WAITOK);
Home |
Main Index |
Thread Index |
Old Index