mirror of https://gitee.com/openkylin/linux.git
greybus: es1: forgot to free our urb on disconnect
This commit is contained in:
parent
47f6ef12fe
commit
d9d077fdbc
|
@ -441,6 +441,7 @@ static void ap_disconnect(struct usb_interface *interface)
|
|||
|
||||
/* Tear down everything! */
|
||||
usb_kill_urb(es1->svc_urb);
|
||||
usb_free_urb(es1->svc_urb);
|
||||
usb_put_dev(es1->usb_dev);
|
||||
kfree(es1->svc_buffer);
|
||||
greybus_remove_hd(es1->hd);
|
||||
|
|
Loading…
Reference in New Issue