Message ID | 20200603030506.31577-1-qiang.zhang@windriver.com |
---|---|
State | New |
Headers | show |
Series | 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); }