- memory-leak-in-drivers-usb-serial-airprimec.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Memory leak in drivers/usb/serial/airprime.c

has been removed from the -mm tree.  Its filename is

     memory-leak-in-drivers-usb-serial-airprimec.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Memory leak in drivers/usb/serial/airprime.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

the commit
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=5dda171202f94127e49c12daf780cdae1b4e668b
added a memory leak.  In case we cant allocate an urb, we dont free the
buffer and leak it.  Coverity id #1438

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Acked-by: Andy Gay <andy@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/usb/serial/airprime.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/usb/serial/airprime.c~memory-leak-in-drivers-usb-serial-airprimec drivers/usb/serial/airprime.c
--- a/drivers/usb/serial/airprime.c~memory-leak-in-drivers-usb-serial-airprimec
+++ a/drivers/usb/serial/airprime.c
@@ -134,6 +134,7 @@ static int airprime_open(struct usb_seri
 		}
 		urb = usb_alloc_urb(0, GFP_KERNEL);
 		if (!urb) {
+			kfree(buffer);
 			dev_err(&port->dev, "%s - no more urbs?\n",
 				__FUNCTION__);
 			result = -ENOMEM;
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

origin.patch
remove-unnecessary-check-in-drivers-video-intelfb-intelfbhwc.patch
git-netdev-all.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
dereference-in-drivers-scsi-lpfc-lpfc_ctc.patch
possible-dereference-in-drivers-net-wireless-zd1201c.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux