diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-07-15 16:44:59 +0900 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-28 14:04:39 -0700 |
| commit | 08660a5c8d497f43191635d97efd31cd35051f15 (patch) | |
| tree | f5a95a0e1b636a31f61a932dd958bb34df7d5840 /tools/perf/scripts/python/task-analyzer.py | |
| parent | fccada336f6d29344e3853d44b96684807dd7d7d (diff) | |
nvme-pci: disable controller on admin queue IRQ setup failure
nvme_pci_configure_admin_queue() enables the controller and then requests
the admin queue interrupt. If queue_request_irq() fails it returns without
disabling the controller, and no caller compensates: nvme_pci_enable() only
frees the IRQ vectors and calls pci_disable_device(), after which
nvme_dev_disable() treats the controller as dead and skips nvme_disable_ctrl().
The controller is left enabled (CC.EN set) on this error path.
Disable it in the failure path, while the PCI device is still enabled so the
CC.EN clear handshake completes.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Fixes: b60503ba432b ("NVMe: New driver")
Cc: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
