]> 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)
commit0e111ea3b578c15d3fa0ee6c605f853c19adc25e
tree3fd31d7943eec6ec08cb915513ef71d9c67aa607
parentf82353c08b7f6236259a375aca08e7bab58a804f
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