fix memory leak in scan_scsis_single
There is a memory leak in the scan_scsis_single function in 2.4.23-pre8 (and previous): the scsi_release_commandblocks function is not called when a SCSI target ID is probed, but no device exists there. (So a scsi host driver which supports 256 target IDs but only has 1 attached will hit this code 255 times when it loads.)
This following small patch fixes this leak.
Thanks,
Jamie Wellnitz
[email protected]
scsi/scsi_scan.c renamed from scsi/scsi_scan.c.orig +1 -0
@@ -619,6 +619,7 @@/* not-ready to ready transition - good */ }else {/* assume no peripheral if any other sort of error */ +scsi_release_commandblocks (SDpnt);scsi_release_request (SRpnt);return 0 ; }