svn commit: r367338 - head/sys/dev/usb/controller
Emmanuel Vadot
manu at FreeBSD.org
Wed Nov 4 18:24:00 UTC 2020
Author: manu
Date: Wed Nov 4 18:23:59 2020
New Revision: 367338
URL: https://svnweb.freebsd.org/changeset/base/367338
Log:
Plug minor memory leak in dwc3 USB2/USB3 controller.
OF_getprop_alloc called earlier requires corresponding OF_prop_free to release allocated memory.
Submitted by: kjopek at gmail.com
Differential Revision: https://reviews.freebsd.org/D27085
Modified:
head/sys/dev/usb/controller/dwc3.c
Modified: head/sys/dev/usb/controller/dwc3.c
==============================================================================
--- head/sys/dev/usb/controller/dwc3.c Wed Nov 4 17:51:09 2020 (r367337)
+++ head/sys/dev/usb/controller/dwc3.c Wed Nov 4 18:23:59 2020 (r367338)
@@ -235,6 +235,7 @@ snps_dwc3_configure_phy(struct snps_dwc3_softc *sc)
DWC3_GUSB2PHYCFG0_USBTRDTIM(DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS);
}
DWC3_WRITE(sc, DWC3_GUSB2PHYCFG0, reg);
+ OF_prop_free(phy_type);
}
static void
More information about the svn-src-all
mailing list