View | Details | Raw Unified | Return to bug 193696
Collapse All | Expand All

(-)w/sys/kern/kern_malloc.c (-1 / +4 lines)
Lines 472-480 malloc(unsigned long size, struct malloc_type *mtp, int flags) Link Here
472
		}
472
		}
473
	}
473
	}
474
#endif
474
#endif
475
	if (flags & M_WAITOK)
475
	if (flags & M_WAITOK) {
476
		KASSERT(curthread->td_intr_nesting_level == 0,
476
		KASSERT(curthread->td_intr_nesting_level == 0,
477
		   ("malloc(M_WAITOK) in interrupt context"));
477
		   ("malloc(M_WAITOK) in interrupt context"));
478
		KASSERT(THREAD_CAN_SLEEP(),
479
		   ("malloc(M_WAITOK) in no_sleeping context"));
480
	}
478
481
479
#ifdef DEBUG_MEMGUARD
482
#ifdef DEBUG_MEMGUARD
480
	if (memguard_cmp_mtp(mtp, size)) {
483
	if (memguard_cmp_mtp(mtp, size)) {

Return to bug 193696