NVMe: Fix device cleanup on initialization failure
authorKeith Busch <keith.busch@intel.com>
Mon, 8 Jun 2015 16:08:13 +0000 (10:08 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 27 Jun 2015 17:42:48 +0000 (11:42 -0600)
commit4af0e21caf8e676e57ea27d7cce3426e473e498c
tree3fd31d7943eec6ec08cb915513ef71d9c67aa607
parentd2c3ac7e7e39ec6d37e4114ae7444948561e59af
NVMe: Fix device cleanup on initialization failure

Don't release block queue and tagging resoureces if the driver never
got them in the first place. This can happen if the controller fails to
become ready, if memory wasn't available to allocate a tagset or admin
queue, or if the resources were released as part of error recovery.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c