qla2xxx: Fix shost use-after-free on device removal
authorJoe Lawrence <joe.lawrence@stratus.com>
Tue, 26 Aug 2014 21:10:41 +0000 (17:10 -0400)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:58 +0000 (09:09 -0700)
commitdb7157d4cfce6edf052452fb1d327d4d11b67f4c
treeb254432fc2e790ee5ef859e886348b0784884561
parentc01a8bc084b9bec58a9ee3c7a95fb4266328c4b8
qla2xxx: Fix shost use-after-free on device removal

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")
Cc: stable@vger.kernel.org # 3.14, 3.15, 3.16
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>
drivers/scsi/qla2xxx/qla_os.c