[SCSI] 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)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 18 Feb 2010 16:52:39 +0000 (10:52 -0600)
commitd5469119f0098881ab7f991990ef4f81ef13a194
tree62ffe8444a7692a222b59dc115c30b9047687e57
parent75f8ee8e01a6c96652f27da40d4bdac9e2e485f0
[SCSI] fix refcounting bug in scsi_get_host_dev

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>
drivers/scsi/scsi_scan.c