hso: fix memory leak when device disconnects
authorOlivier Sobrie <olivier@sobrie.be>
Fri, 30 Jan 2015 12:21:55 +0000 (13:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 20:33:26 +0000 (12:33 -0800)
commit295fc56f465ee8e013b2889e42094da9b2bd7125
tree2bbdf844e630eba53c141821938559dfce178f4d
parent29bd3bc1194c624ce863cab2a7da9bc1f0c3b47b
hso: fix memory leak when device disconnects

In the disconnect path, tx_buffer should freed like tx_data to avoid
a memory leak when the device disconnects.

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c