Don't panic if we fail to satisfy an M_WAITOK request; return 0 instead.

The calling code will either handle that gracefully or cause a page fault.
This commit is contained in:
Dag-Erling Smørgrav 2004-02-16 18:41:58 +00:00
parent 44f4b94b38
commit cbea5fb98f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125882

View File

@ -336,9 +336,11 @@ kmem_malloc(map, size, flags)
}
return (0);
}
#if 0
if ((flags & M_NOWAIT) == 0)
panic("kmem_malloc(%ld): kmem_map too small: %ld total allocated",
(long)size, (long)map->size);
#endif
return (0);
}
offset = addr - VM_MIN_KERNEL_ADDRESS;