]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Skip queue deletion if there are no queues
authorKeith Busch <keith.busch@intel.com>
Thu, 12 Apr 2018 15:16:08 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
commitd84befc1751f91f0cc9b291461f4a23949ee1d23
treef362e9b1727897b8f4b6ec1e4ade171328057910
parent6f9c2cb584c359b4ca9ec50bc4fc5b5b1bb19e18
nvme-pci: Skip queue deletion if there are no queues

User reported controller always retains CSTS.RDY to 1, which fails
controller disabling when resetting the controller. This is also before
the admin queue is allocated, and trying to disable an unallocated queue
results in a NULL dereference.

Reported-by: Alex Gagniuc <Alex_Gagniuc@Dellteam.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c