mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09: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:
committed by
Greg Kroah-Hartman
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);
|
||||
|
||||
Reference in New Issue
Block a user