]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a0cc5cffab4be5daf75a93bb4af0bd9c8eccbaf
tree3fd31d7943eec6ec08cb915513ef71d9c67aa607
parent66b788923ed8e1d8e5d0bf7518fcc4d901611a08
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