]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix memory leak in scsi_report_lun_scan
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 12 Feb 2010 17:13:31 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:28:38 +0000 (15:28 -0700)
commit578aa9eecba99df4190c9cdb11fe7b7f410b7745
tree4cf3d74713b52751fa3592c57dea85b4dcd12ef3
parent83d9a80c2be562d1d98e79f34f89e92192a40ced
fix memory leak in scsi_report_lun_scan

commit 75f8ee8e01a6c96652f27da40d4bdac9e2e485f0 upstream.

This patch (as1333) fixes a bug in scsi_report_lun_scan().  If a
newly-allocated device can't be used, it should be deleted.

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