qla2xxx: Fix shost use-after-free on device removal
commit30d26f5c75a87d9477b1ad871fc4362b625df414
authorJoe Lawrence <joe.lawrence@stratus.com>
Tue, 26 Aug 2014 21:10:41 +0000 (26 17:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:40:12 +0000 (30 09:40 -0700)
treed93c85fb0144f5104382f7e1e96ce9cb973866c7
parent54bf501e23cc29906e813eb6e7c2526b3ea3dec5
qla2xxx: Fix shost use-after-free on device removal

commit db7157d4cfce6edf052452fb1d327d4d11b67f4c upstream.

Once calling scsi_host_put, be careful to not access qla_hw_data through
the Scsi_Host private data (ie, scsi_qla_host base_vha).

Fixes: fe1b806f4f71 ("qla2xxx: Refactor shutdown code so some functionality can be reused")
Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_os.c