From: Andy Grover Date: Fri, 22 May 2015 21:07:44 +0000 (-0700) Subject: target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~34^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7125c64def3b21f8147eca8b54949a60963942;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org # 2.6.38+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed