Skip to content

Commit

Permalink
NVMe: Fix warning in free_irq
Browse files Browse the repository at this point in the history
We need to clear the affinity mask before calling free_irq()

Reported-by: Shane Michael Matthews <shane.matthews@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 7f53f9d commit aba2080
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,10 @@ static int adapter_delete_sq(struct nvme_dev *dev, u16 sqid)
static void nvme_free_queue(struct nvme_dev *dev, int qid)
{
struct nvme_queue *nvmeq = dev->queues[qid];
int vector = dev->entry[nvmeq->cq_vector].vector;

free_irq(dev->entry[nvmeq->cq_vector].vector, nvmeq);
irq_set_affinity_hint(vector, NULL);
free_irq(vector, nvmeq);

/* Don't tell the adapter to delete the admin queue */
if (qid) {
Expand Down

0 comments on commit aba2080

Please sign in to comment.