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:
parent
44f4b94b38
commit
cbea5fb98f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125882
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user