Re: [PATCH] USB Network driver infrastructure: Fix leak whenusb_autopm_get_interface() returns less than zero in kevent().

From: David Miller
Date: Sun Feb 13 2011 - 14:21:07 EST


From: Jesper Juhl <jj@xxxxxxxxxxxxx>
Date: Thu, 10 Feb 2011 21:58:45 +0100 (CET)

> We'll leak the memory allocated to 'urb' in
> drivers/net/usb/usbnet.c:kevent() when we 'goto fail_lowmem' and the 'urb'
> variable goes out of scope while still completely unused.
>
> Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/