diff options
| author | christos <christos@NetBSD.org> | 2001-12-06 23:11:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2001-12-06 23:11:59 +0000 |
| commit | d343ff07bfd3e7ea3683fb35ebf3104292eec5f5 (patch) | |
| tree | f75c7fbd2a98d22b323f6bf6e1e00b40e48e372b /sys/kern | |
| parent | 23b68ed07162fc2883142e855b57e75f5aa9a8c2 (diff) | |
remove diagnostic test checking for cr_ref = 0. It will never be, because
free() will stick 0xdeadbeef into it.
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_prot.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index bf13f8cdd45..505e9030589 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_prot.c,v 1.67 2001/11/29 21:21:13 christos Exp $ */ +/* $NetBSD: kern_prot.c,v 1.68 2001/12/06 23:11:59 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993 @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.67 2001/11/29 21:21:13 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.68 2001/12/06 23:11:59 christos Exp $"); #include "opt_compat_43.h" @@ -687,15 +687,6 @@ crfree(cr) struct ucred *cr; { -#ifdef DIAGNOSTIC - /* - * This check is not too reliable - the memory is likely - * to be reused fast. - */ - if (cr->cr_ref == 0) - panic("crfree: ucred already free"); -#endif - if (--cr->cr_ref == 0) FREE((caddr_t)cr, M_CRED); } |
