Prevent zero size devices from attaching
authorjan <jan@openbsd.org>
Thu, 25 Feb 2021 07:30:36 +0000 (07:30 +0000)
committerjan <jan@openbsd.org>
Thu, 25 Feb 2021 07:30:36 +0000 (07:30 +0000)
commitbadf3925680491859cc47586d6b39ed57e0aa3e4
tree5b6ee1fd2517b3216e1227847bac538b49901a51
parent5bdc47d2007b3cecc66dc2dacf9c94558a03d3b4
Prevent zero size devices from attaching

This also fixes two NULL ptr derefs in later code path.

OK patick@, krw@
sys/dev/ic/nvme.c