summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-06-24 09:41:00 +0000
committerdg <dg@FreeBSD.org>1997-06-24 09:41:00 +0000
commite95a95cf3a046d21c5e61d668090d0d10c7f2827 (patch)
tree09541aae3103ed800eeaa9e6a42c6279508c2dc0 /sys
parenta568c704c40556202ce97cfa8a865d4afb2978d6 (diff)
downloadFreeBSD-src-e95a95cf3a046d21c5e61d668090d0d10c7f2827.zip
FreeBSD-src-e95a95cf3a046d21c5e61d668090d0d10c7f2827.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_malloc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 94c6b4e..a0a470f 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
OpenPOWER on IntegriCloud