check for null vioblk info
authordv <dv@openbsd.org>
Sun, 29 Aug 2021 11:41:27 +0000 (11:41 +0000)
committerdv <dv@openbsd.org>
Sun, 29 Aug 2021 11:41:27 +0000 (11:41 +0000)
commit802c227e3a1d7fd4bb043494b5840376a5592cb7
tree4870c905980454708e31317b39afe0b0c3342cec
parente9317b4bf0e0f97522af20b1830f8aafe1ff76d1
check for null vioblk info

If {c,m}alloc fail, info could be NULL and result in NULL deref.

Reported by Ilja van Sprundel.

ok mlarkin@
usr.sbin/vmd/virtio.c