Brian Behlendorf 0365064a97 Handle closing an unopened ZVOL
Thank to commit a4430fce691d492aec382de0dfa937c05ee16500 we're
now correctly returning EROFS when opening a zvol on a read-only
pool.  Unfortunately, it looks like this causes us to trigger
some unexpected behavior by __blkdev_get().

In the failure case it's possible __blkdev_get() will call
__blkdev_put() for a bdev which was never successfully opened.
This results in us trying to close the device again and hitting
the NULL dereference.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1343
2015-01-30 14:44:14 -08:00
..
2014-11-19 12:30:39 -05:00
2015-01-16 14:40:32 -08:00
2015-01-16 14:41:26 -08:00
2015-01-30 14:44:14 -08:00
2014-10-28 09:46:14 -07:00