All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -repost 1/4] SCSI: aacraid, fix memory leak
@ 2009-10-09 13:58 Jiri Slaby
  2009-10-09 13:58 ` [PATCH -repost 2/4] SCSI: remove unnecessary NULL test Jiri Slaby
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jiri Slaby @ 2009-10-09 13:58 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, linux-kernel, Jiri Slaby

Stanse found a memory leak on one fail path in aac_send_raw_srb. Add kfree
there.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: James E.J. Bottomley <James.Bottomley@suse.de>
---
 drivers/scsi/aacraid/commctrl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c
index 0391d75..5c9a8be 100644
--- a/drivers/scsi/aacraid/commctrl.c
+++ b/drivers/scsi/aacraid/commctrl.c
@@ -649,6 +649,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)
 				     AAC_OPT_NEW_COMM) ?
 				      (dev->scsi_host_ptr->max_sectors << 9) :
 				      65536) {
+					kfree (usg);
 					rcode = -EINVAL;
 					goto cleanup;
 				}
-- 
1.6.4.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-09 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 13:58 [PATCH -repost 1/4] SCSI: aacraid, fix memory leak Jiri Slaby
2009-10-09 13:58 ` [PATCH -repost 2/4] SCSI: remove unnecessary NULL test Jiri Slaby
2009-10-09 13:58 ` [PATCH -repost 3/4] SCSI: lpfc, fix memory leak Jiri Slaby
2009-10-09 17:43   ` James Smart
2009-10-09 13:58 ` [PATCH -repost 4/4] SCSI: scsi_lib, fix potential NULL dereference Jiri Slaby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.