linux/drivers/nvme/host
Gabriel Krisman Bertazi 82469c59d2 nvme: Don't suspend admin queue that wasn't created
This fixes a regression in my previous commit c21377f836 ("nvme:
Suspend all queues before deletion"), which provoked an Oops in the
removal path when removing a device that became IO incapable very early
at probe (i.e. after a failed EEH recovery).

Turns out, if the error occurred very early at the probe path, before
even configuring the admin queue, we might try to suspend the
uninitialized admin queue, accessing bad memory.

Fixes: c21377f836 ("nvme: Suspend all queues before deletion")
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-09-07 08:53:21 -06:00
..
core.c nvme: Fix nvme_get/set_features() with a NULL result pointer 2016-08-24 08:11:10 -06:00
fabrics.c nvme-fabrics: get a reference when reusing a nvme_host structure 2016-08-19 14:22:12 +03:00
fabrics.h nvme-fabrics: change NQN UUID to big-endian format 2016-08-19 12:00:44 +03:00
Kconfig nvme: fabrics drivers don't need the nvme-pci driver 2016-08-19 14:22:28 +03:00
lightnvm.c block: get rid of bio_rw and READA 2016-07-20 17:37:01 -06:00
Makefile nvme-rdma: add a NVMe over Fabrics RDMA host driver 2016-07-08 08:38:49 -06:00
nvme.h nvme: Limit command retries 2016-07-12 16:20:31 -07:00
pci.c nvme: Don't suspend admin queue that wasn't created 2016-09-07 08:53:21 -06:00
rdma.c nvme-rdma: Get rid of redundant defines 2016-08-28 15:41:08 +03:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00