zvol_probe should return NULL when the device isn't found.
authorChris Wedgwood <cw@f00f.org>
Mon, 24 Sep 2012 17:30:18 +0000 (10:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Oct 2012 17:39:12 +0000 (10:39 -0700)
commit23a61ccc1b89fa5b89b5d8383d57cf5152406cfc
tree973b416e485b671daeea3db246f1fee1735787f1
parent37abac6d559a1da8ab8e5379442f491b73998f6a
zvol_probe should return NULL when the device isn't found.

Previously we returned ERR_PTR(-ENOENT) which the rest of the kernel
doesn't expect and as such we can oops.

Signed-off-by: Chris Wedgwood <cw@f00f.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #949
Closes #931
Closes #789
Closes #743
Closes #730
module/zfs/zvol.c