mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue