diff options
author | Warner Losh <imp@FreeBSD.org> | 2021-07-09 17:21:18 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2021-07-09 17:21:18 +0000 |
commit | 72821668b039c276914569e9caa1cdfa4e4cb674 (patch) | |
tree | ec55ecf87098964b67321d85014b2885d6c5c192 /sys/sys/elf64.h | |
parent | 1472117a1e1c40f10b9c3a48788fbf8355588ee8 (diff) | |
download | src-72821668b039c276914569e9caa1cdfa4e4cb674.tar.gz src-72821668b039c276914569e9caa1cdfa4e4cb674.zip |
stand/kmem_zalloc: panic when a M_WAITOK allocation fails
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.
Reviewed by: tsoome
PR: 249859
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31106
Diffstat (limited to 'sys/sys/elf64.h')
0 files changed, 0 insertions, 0 deletions