]> 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:24:05 +0000 (15:24 -0700)
commit6e3a40450613ba9d77c4f0bad6c27bdbd8891187
treec14156623994d9e77d0190f4bfbae22963a8e7dd
parent3c08ee489ddebd3cd0655940a57e1b71f524ef4a
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