]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Fix device cleanup on initialization failure
authorKeith Busch <keith.busch@intel.com>
Thu, 6 Aug 2015 17:37:53 +0000 (10:37 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 7 Aug 2015 18:21:06 +0000 (11:21 -0700)
commita55c4be4f9afc516368d3a45360f735887cf72fe
tree104e4e31c8e4dd329bf16d0c3e2fed926f330a4f
parent58f36e69b9cababfaf9ebb6b4a7ff293104474f9
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>
(cherry picked from commit 4af0e21caf8e676e57ea27d7cce3426e473e498c)

Conflicts:

drivers/block/nvme-core.c

Orabug: 21569452

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/block/nvme-core.c