[SCSI] 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)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 18 Feb 2010 16:52:10 +0000 (10:52 -0600)
commit75f8ee8e01a6c96652f27da40d4bdac9e2e485f0
tree0052eea0bf0ad22577c0ef1e89f9a4297b05e96a
parent277e76f1821ab131a409c6a2e04492ef5774fb3c
[SCSI] fix memory leak in scsi_report_lun_scan

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