commit | 43cacb03aabe62158d8e5da876054c7d48fc9963 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Wed Jul 01 22:03:09 2015 -0500 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jul 06 12:34:08 2015 -0500 |
tree | 5ff1cca4d2cc79240eb078659dcd6beb9ccf07d0 | |
parent | cc1e204cb092da8495fe2c24bdc4543c259d6b34 [diff] |
usb: dwc3: core: avoid NULL pointer dereference commit 3e10a2ce98d1 ("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: 3e10a2ce98d1 ("usb: dwc3: add hsphy_interface property") Tested-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>