return early if malloc fails to avoid use after free
authorjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 09:15:57 +0000 (09:15 +0000)
committerjsg <jsg@openbsd.org>
Sat, 3 Feb 2024 09:15:57 +0000 (09:15 +0000)
commit916d47d651323dc244f948cb3d82b01b465025a0
treec01d48605ef9b080e296b620e303d61d5716f9b3
parentaea1f3b7ba8258c11a9a542454ee3edad2fb5c20
return early if malloc fails to avoid use after free

found by "passing freed memory 'edid'" smatch warning
sys/dev/pci/drm/drm_edid.c