]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix refcounting bug in scsi_get_host_dev
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 12 Feb 2010 17:13:39 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:28:38 +0000 (15:28 -0700)
commit2e4abe551532e10ebb19b7dc18de69ca1ea66ef7
tree2f5f53e2d3276704bc0155eb388837bc2d697530
parent578aa9eecba99df4190c9cdb11fe7b7f410b7745
fix refcounting bug in scsi_get_host_dev

commit d5469119f0098881ab7f991990ef4f81ef13a194 upstream.

This patch (as1334) fixes a bug in scsi_get_host_dev().  It
incorrectly calls get_device() on the new device's target.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_scan.c