]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Fix nvme queue cleanup if IRQ setup fails
authorJianchao Wang <jianchao.w.wang@oracle.com>
Thu, 15 Feb 2018 11:13:41 +0000 (19:13 +0800)
committerKeith Busch <keith.busch@intel.com>
Mon, 26 Feb 2018 08:53:32 +0000 (01:53 -0700)
commitdd92c1d870b66bd5bf70eec15ec8b569d0588edf
tree8f1ec7dafde15c0ca07915c75751c5e19ee7d26b
parentf6ed18afb08b40b18bdb3c8c71c897e257ee6241
nvme-pci: Fix nvme queue cleanup if IRQ setup fails

This patch fixes nvme queue cleanup if requesting an IRQ handler for
the queue's vector fails. It does this by resetting the cq_vector to
the uninitialized value of -1 so it is ignored for a controller reset.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
[changelog updates, removed misc whitespace changes]
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/pci.c