USB Network driver infrastructure: Fix leak when usb_autopm_get_interface() returns...
authorJesper Juhl <jj@chaosbits.net>
Thu, 10 Feb 2011 10:58:45 +0000 (10:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Feb 2011 19:21:15 +0000 (11:21 -0800)
commitab60707ffe9920b66b4fff5181b44b14cd091472
treed0baa22dfe87b87b0188ac0305d05fa7454a5c3c
parentd3337de52af7fb0ebe605b02b740be4ee7dee9eb
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 <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c