Malloc() might return NULL, in which case we will panic with a NULL
pointer deref. Make it panic when the allocation fails to preserve the
postcondtion that we never return a non-NULL value.
PR: 249859
Sponsored by: Netflix
Differential D31106
stand/kmem_zalloc: panic when a M_WAITOK allocation fails imp on Jul 8 2021, 5:41 AM. Authored by Tags None Referenced Files
Subscribers None
Details Malloc() might return NULL, in which case we will panic with a NULL PR: 249859
Diff Detail
Event Timeline
Comment Actions Seems good, thanks!
|