scsi: hisi_sas: kill tasklet when destroying irq in v3 hw
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 10 Aug 2017 16:09:38 +0000 (00:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Aug 2017 00:15:02 +0000 (20:15 -0400)
This patch adds calls to kill CQ takslets v3 hw during probe failure.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c

index a8bd5576afda4e3e636f0b0490bbc67b8e74266b..992ccc2d4956b67f854ab76d1a771936fa5ee067 100644 (file)
@@ -1802,6 +1802,7 @@ hisi_sas_v3_destroy_irqs(struct pci_dev *pdev, struct hisi_hba *hisi_hba)
                struct hisi_sas_cq *cq = &hisi_hba->cq[i];
 
                free_irq(pci_irq_vector(pdev, i+16), cq);
+               tasklet_kill(&cq->tasklet);
        }
        pci_free_irq_vectors(pdev);
 }