USB: wusb: don't leak urb in certain error cases
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 7 Dec 2009 13:50:40 +0000 (13:50 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:26 +0000 (11:55 -0800)
commit2e9729d0f86094e52d14e8b9e17c0aad565ee477
tree66c8fad3b1ecb67e0b2fd762ffd17565d3aaa135
parent0d370755dd4ad3d119818579cfa3eb2e9978b3eb
USB: wusb: don't leak urb in certain error cases

Don't leak an urb in wusb_dev_alloc() if the following kmalloc() failed.

Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/wusbcore/devconnect.c