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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 00:13:03 +0000 (20:13 -0400)
commit720f3d7cb19eb27f85f72836c8f8004ccb257f39
treeb3299b0dfb37f0a4c495871b7907bf5b8d0101bd
parent70f8002d7813ffc5dd9ff3e9d01a17794fb4a4df
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