mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
USB: mos7840: fix urb leak at release
commit 65a4cdbb17 upstream.
Make sure control urb is freed at release.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
25a665eeab
commit
de3ca50ea7
|
|
@ -2662,6 +2662,7 @@ static void mos7840_release(struct usb_serial *serial)
|
|||
mos7840_port = mos7840_get_port_private(serial->port[i]);
|
||||
dbg("mos7840_port %d = %p", i, mos7840_port);
|
||||
if (mos7840_port) {
|
||||
usb_free_urb(mos7840_port->control_urb);
|
||||
kfree(mos7840_port->ctrl_buf);
|
||||
kfree(mos7840_port->dr);
|
||||
kfree(mos7840_port);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user