summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_pscsi.h
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2015-05-22 14:07:44 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2015-05-30 19:11:02 -0700
commit5a7125c64def3b21f8147eca8b54949a60963942 (patch)
treea89c0e0848ddc548058a698d80cd245946fbe336 /drivers/target/target_core_pscsi.h
parentd588cf8f618d7b316743a0bc99fede20f7a01bb7 (diff)
target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST
See https://bugzilla.redhat.com/show_bug.cgi?id=1025672 We need to put() the reference to the scsi host that we got in pscsi_configure_device(). In VIRTUAL_HOST mode it is associated with the dev_virt, not the hba_virt. Signed-off-by: Andy Grover <agrover@redhat.com> Cc: stable@vger.kernel.org # 2.6.38+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pscsi.h')
-rw-r--r--drivers/target/target_core_pscsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_pscsi.h b/drivers/target/target_core_pscsi.h
index 1bd757dff8ee..820d3052b775 100644
--- a/drivers/target/target_core_pscsi.h
+++ b/drivers/target/target_core_pscsi.h
@@ -45,6 +45,7 @@ struct pscsi_dev_virt {
int pdv_lun_id;
struct block_device *pdv_bd;
struct scsi_device *pdv_sd;
+ struct Scsi_Host *pdv_lld_host;
} ____cacheline_aligned;
typedef enum phv_modes {