From: Jesper Juhl Date: Thu, 10 Feb 2011 10:58:45 +0000 (+0000) Subject: USB Network driver infrastructure: Fix leak when usb_autopm_get_interface() returns... X-Git-Tag: v2.6.38-rc6~20^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab60707ffe9920b66b4fff5181b44b14cd091472;p=pandora-kernel.git USB Network driver infrastructure: Fix leak when usb_autopm_get_interface() returns less than zero in kevent(). 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed