Return ENOMEM on malloc errors to prevent use of uninitialized stack
authortobhe <tobhe@openbsd.org>
Mon, 10 Jan 2022 18:23:39 +0000 (18:23 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 10 Jan 2022 18:23:39 +0000 (18:23 +0000)
commit91654044fe67bad682f537892d1420d373d880b7
treefc40e3151a0086995892409ef1fe8b8c3643a400
parent6c5a416ab58043071f7a44a23338e6118ccc1ed9
Return ENOMEM on malloc errors to prevent use of uninitialized stack
memory. Cleanup error handling while here.

ok stsp@ visa@
sys/dev/sdmmc/sdmmc_mem.c