diff --git a/sys/dev/usb/usb_compat_linux.c b/sys/dev/usb/usb_compat_linux.c index a3911bb3740d..95f708ffac34 100644 --- a/sys/dev/usb/usb_compat_linux.c +++ b/sys/dev/usb/usb_compat_linux.c @@ -1143,7 +1143,7 @@ usb_linux_free_device(struct usb_device *dev) uhe++; } err = usb_setup_endpoint(dev, &dev->ep0, 0); - free(uhe, M_USBDEV); + free(dev->linux_endpoint_start, M_USBDEV); } /*------------------------------------------------------------------------*