Commit e0bc573f authored by Andy Grover's avatar Andy Grover Committed by Sasha Levin
Browse files

target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST

[ Upstream commit 5a7125c6 ]

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: default avatarAndy Grover <agrover@redhat.com>
Cc: stable@vger.kernel.org # 2.6.38+
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 4d0b9216
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment