In the Linux kernel, the following vulnerability has been resolved:
usb: dwc2: Fix memory leak in dwc2hcdinit
usbcreatehcd will alloc memory for hcd, and we should call usbputhcd to free it when platformgetresource() fails to prevent memory leak. goto error2 label instead error1 to fix this.