From: Eric Sesterhenn 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 Cc: Greg KH Acked-by: Andy Gay Signed-off-by: Andrew Morton --- 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; _