mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
USB: opticon: move read-urb deallocation to release
Move read-urb deallocation from disconnect to release. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a0a5fd92a4
commit
70f9bf65a4
1 changed files with 1 additions and 1 deletions
|
|
@ -523,13 +523,13 @@ static void opticon_disconnect(struct usb_serial *serial)
|
|||
struct opticon_private *priv = usb_get_serial_data(serial);
|
||||
|
||||
usb_kill_urb(priv->bulk_read_urb);
|
||||
usb_free_urb(priv->bulk_read_urb);
|
||||
}
|
||||
|
||||
static void opticon_release(struct usb_serial *serial)
|
||||
{
|
||||
struct opticon_private *priv = usb_get_serial_data(serial);
|
||||
|
||||
usb_free_urb(priv->bulk_read_urb);
|
||||
kfree(priv->bulk_in_buffer);
|
||||
kfree(priv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue