Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: dwc3: core: avoid NULL pointer dereference
commit 3e10a2c ("usb: dwc3: add hsphy_interface property") introduced a possible NULL pointer dereference because dwc->hsphy_interface can be NULL. In order to fix it, all we have to do is guard strncmp() against a NULL argument. Fixes: 3e10a2c ("usb: dwc3: add hsphy_interface property") Tested-by: Murali Karicheri <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
- Loading branch information