HomeFreeBSD

zvol_probe should return NULL when the device isn't found.

Description

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

Details

Provenance
Chris Wedgwood <cw@f00f.org>Authored on Sep 24 2012, 5:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 3 2012, 5:39 PM
Parents
rG37abac6d559a: Illumos #2703: add mechanism to report ZFS send progress
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG23a61ccc1b89: zvol_probe should return NULL when the device isn't found. (authored by Chris Wedgwood <cw@f00f.org>).Oct 3 2012, 5:39 PM