2.4.21-pre3 scsi_scan.c memory leak.
PATCH 1/1 2.4.21-pre3 scsi_scan.c memory leak.
I found this while doing a longevity load/unload test of the aic79xx driver. I can't say if this is the only memory leak in the unload process, but its at least one of them. This only cleans up properly in the common cases of failure in scan_scsis_single(). The whole routines a bit of a mess....
--
Justin
scsi_scan.c.mine renamed from scsi_scan.c +2 -0
@@ -596,6 +596,7 @@ } else { /* assume no peripheral if any other sort of error */ scsi_release_request(SRpnt); + scsi_release_commandblocks(SDpnt); return 0; } }
@@ -619,6 +620,7 @@ */ if ((scsi_result[0] >> 5) == 3) { scsi_release_request(SRpnt); + scsi_release_commandblocks(SDpnt); return 0; /* assume no peripheral if any sort of error */ } /* The Toshiba ROM was "gender-changed" here as an inline hack.