mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
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@gmail.com Differential Revision: https://reviews.freebsd.org/D27085
This commit is contained in:
parent
7b7921b47e
commit
03d0d84bf6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue