projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29bd3bc
)
hso: fix memory leak when device disconnects
author
Olivier Sobrie
<olivier@sobrie.be>
Fri, 30 Jan 2015 12:21:55 +0000
(13:21 +0100)
committer
David S. Miller
<davem@davemloft.net>
Sun, 1 Feb 2015 20:33:26 +0000
(12:33 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/net/usb/hso.c
b/drivers/net/usb/hso.c
index
191c1fa
..
d855cea
100644
(file)
--- a/
drivers/net/usb/hso.c
+++ b/
drivers/net/usb/hso.c
@@
-2253,6
+2253,7
@@
static void hso_serial_common_free(struct hso_serial *serial)
/* unlink and free TX URB */
usb_free_urb(serial->tx_urb);
+ kfree(serial->tx_buffer);
kfree(serial->tx_data);
tty_port_destroy(&serial->port);
}