SCSI: aacraid, fix memory leak
Subsystems (2)
PATCH 17/19 SCSI: aacraid, fix memory leak
From: Jiri Slaby <[email protected]>
Stanse found a memory leak on one fail path in aac_send_raw_srb. Add kfree there.
Signed-off-by Jiri Slaby <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/aacraid/commctrl.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/aacraid/commctrl.c renamed from drivers/scsi/aacraid/commctrl.c~scsi-aacraid-fix-memory-leak +1 -0
@@ -649,6 +649,7 @@ static int aac_send_raw_srb(struct aac_d AAC_OPT_NEW_COMM) ? (dev->scsi_host_ptr->max_sectors << 9) : 65536) { +kfree (usg); rcode = -EINVAL ; goto cleanup; }
_