mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
NVMe: Fix warning in free_irq
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>
This commit is contained in:
parent
7f53f9d242
commit
aba2080f3f
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
static void nvme_free_queue(struct nvme_dev *dev, int qid)
|
||||||
{
|
{
|
||||||
struct nvme_queue *nvmeq = dev->queues[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 */
|
/* Don't tell the adapter to delete the admin queue */
|
||||||
if (qid) {
|
if (qid) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue