From: Wei Yongjun Date: Wed, 26 Apr 2017 05:43:59 +0000 (+1000) Subject: scsi: mac_esp: fix to pass correct device identity to free_irq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git scsi: mac_esp: fix to pass correct device identity to free_irq() 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 Signed-off-by: Finn Thain Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c index 26c67c42985c..999699d45e14 100644 --- a/drivers/scsi/mac_esp.c +++ b/drivers/scsi/mac_esp.c @@ -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: