Skip to content

Commit c0e3a6a

Browse files
Wei Yongjunmartinkpetersen
authored andcommitted
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 <weiyongjun1@huawei.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f481973 commit c0e3a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mac_esp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ static int esp_mac_probe(struct platform_device *dev)
587587
esp_chips[dev->id] = NULL;
588588
if (esp_chips[!dev->id] == NULL) {
589589
spin_unlock(&esp_chips_lock);
590-
free_irq(host->irq, esp);
590+
free_irq(host->irq, NULL);
591591
} else
592592
spin_unlock(&esp_chips_lock);
593593
fail_free_priv:

0 commit comments

Comments
 (0)