]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload
authorCathy Avery <cavery@redhat.com>
Tue, 27 Nov 2018 19:28:53 +0000 (14:28 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 Nov 2018 23:55:57 +0000 (18:55 -0500)
commit02f425f811cefcc4d325d7a72272651e622dc97e
treea94079946fce8c57a40fdc4408b4105b7cc958b6
parent5db6dd14b31397e8cccaaddab2ff44ebec1acf25
scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload

Currently pvscsi_remove calls free_irq more than once as
pvscsi_release_resources and __pvscsi_shutdown both call
pvscsi_shutdown_intr. This results in a 'Trying to free already-free IRQ'
warning and stack trace. To solve the problem pvscsi_shutdown_intr has been
moved out of pvscsi_release_resources.

Signed-off-by: Cathy Avery <cavery@redhat.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/vmw_pvscsi.c