diff options
author | David Greenman <dg@FreeBSD.org> | 1997-06-24 09:41:00 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1997-06-24 09:41:00 +0000 |
commit | 358311fe6326b210bfcd57975df66479e6fdc224 (patch) | |
tree | 19244bd9ef5930478b9095098450265f57c83f11 /sys/kern/kern_malloc.c | |
parent | ee889b3ba03cf2d92ad8d6979956fcb5eee48e73 (diff) | |
download | src-358311fe6326b210bfcd57975df66479e6fdc224.tar.gz src-358311fe6326b210bfcd57975df66479e6fdc224.zip |
Killed bogus kernacc() call in malloc() DIAGNOSTIC code. kernacc() by
it's nature, locks the kernal_map, and this is deadly if kernal_map had
been locked previous to a (net) interrupt.
Notes
Notes:
svn path=/head/; revision=26887
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 94c6b4e63413..a0a470f94ed4 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94 - * $Id$ + * $Id: kern_malloc.c,v 1.26 1997/02/22 09:39:07 peter Exp $ */ #include <sys/param.h> @@ -199,13 +199,6 @@ malloc(size, type, flags) freep = (struct freelist *)va; savedtype = (unsigned)freep->type < M_LAST ? memname[freep->type] : "???"; - if (kbp->kb_next && - !kernacc(kbp->kb_next, sizeof(struct freelist), 0)) { - printf("%s of object %p size %ld %s %s (invalid addr %p)\n", - "Data modified on freelist: word 2.5", va, size, - "previous type", savedtype, kbp->kb_next); - kbp->kb_next = NULL; - } #if BYTE_ORDER == BIG_ENDIAN freep->type = WEIRD_ADDR >> 16; #endif |