]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Fix irq freeing when queue_request_irq fails
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 30 Jun 2015 17:22:52 +0000 (11:22 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:48 +0000 (16:31 -0700)
commitc306d0317d0b79eacf91c92d06ec9474a7223d56
tree8b266bb2308b38f6d6c34e75532c9f4196a1340a
parent3ff40461886bc7ecb04307c0ec621f67a2ca8b48
NVMe: Fix irq freeing when queue_request_irq fails

Fixes an issue when queue_reuest_irq fails in nvme_setup_io_queues. This
patch initializes all vectors to -1 and resets the vector to -1 in the
case of a failure in queue_request_irq. This avoids the free_irq in
nvme_suspend_queue if the queue did not get an irq.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 758dd7fdffd60507624edce34fff122a63163b3f)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c