usbnet: fix leak of transfer buffer of dev->interrupt
authortom.leiming@gmail.com <tom.leiming@gmail.com>
Sun, 29 Apr 2012 22:51:02 +0000 (22:51 +0000)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 13:32:15 +0000 (18:32 +0530)
commit267a83e8e00dc5a878b24c39883643c20a8b1482
treeb239daf2a3fb96f9e27baf16dce7cb00aaa0be64
parent4a3577d58e778a15302d98d50342c7fb8d537119
usbnet: fix leak of transfer buffer of dev->interrupt

The transfer buffer of dev->interrupt is allocated in .probe path,
but not freed in .disconnet path, so mark the interrupt URB as
URB_FREE_BUFFER to free the buffer when the URB is destroyed.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c