diff options
author | 2015-07-01 22:03:09 -0500 | |
---|---|---|
committer | 2015-07-06 12:34:08 -0500 | |
commit | 43cacb03aabe62158d8e5da876054c7d48fc9963 (patch) | |
tree | 5ff1cca4d2cc79240eb078659dcd6beb9ccf07d0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: dwc2: embed storage for reg backup in struct dwc2_hsotg (diff) | |
download | wireguard-linux-43cacb03aabe62158d8e5da876054c7d48fc9963.tar.xz wireguard-linux-43cacb03aabe62158d8e5da876054c7d48fc9963.zip |
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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions