]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: mac_esp: fix to pass correct device identity to free_irq()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Apr 2017 05:43:59 +0000 (15:43 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 26 Apr 2017 22:31:23 +0000 (18:31 -0400)
free_irq() expects the same device identity that was passed to
corresponding request_irq(), otherwise the IRQ is not freed.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mac_esp.c

index 26c67c42985c8e1e7f127d0ae84417f5149abea7..999699d45e1421d777eae8cdb6dc3c4b6a81daf3 100644 (file)
@@ -587,7 +587,7 @@ fail_free_irq:
        esp_chips[dev->id] = NULL;
        if (esp_chips[!dev->id] == NULL) {
                spin_unlock(&esp_chips_lock);
-               free_irq(host->irq, esp);
+               free_irq(host->irq, NULL);
        } else
                spin_unlock(&esp_chips_lock);
 fail_free_priv: