Message ID | 20200612035210.20494-1-qiang.zhang@windriver.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect | expand |
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 98ada1a3425c..bae88893ee8e 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -2873,6 +2873,7 @@ static void usbtest_disconnect(struct usb_interface *intf) usb_set_intfdata(intf, NULL); dev_dbg(&intf->dev, "disconnect\n"); + kfree(dev->buf); kfree(dev); }