]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nvme/host/pci.c
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit8c410b9fa53d5af81765876fa31d90d79ec85d27
tree51fff68bf23cf2fbee378670c78c58e20d729b46
parentcfedb04e4726264e886c83907400108b526c2a3e
nvme-pci: Fix nvme queue cleanup if IRQ setup fails

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit f25a2dfc20e3a3ed8fe6618c331799dd7bd01190 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/nvme/host/pci.c