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>