summaryrefslogtreecommitdiff
path: root/drivers/usb/early
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-07-01 22:03:09 -0500
committerFelipe Balbi <balbi@ti.com>2015-07-06 12:34:08 -0500
commit43cacb03aabe62158d8e5da876054c7d48fc9963 (patch)
tree5ff1cca4d2cc79240eb078659dcd6beb9ccf07d0 /drivers/usb/early
parentcc1e204cb092da8495fe2c24bdc4543c259d6b34 (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>
Diffstat (limited to 'drivers/usb/early')
0 files changed, 0 insertions, 0 deletions