diff options
author | Lee Jones <[email protected]> | 2019-06-17 13:51:05 +0100 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2019-06-18 11:58:29 +0300 |
commit | 7f5d6a4696170ca7394d9dcecd5a54ebe2b9a067 (patch) | |
tree | d5cd69bfe3318a4d1de71ab7e26575acb1997716 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a6e456209d088df31eacfa877d40194c755ca153 (diff) |
usb: dwc3: qcom: Improve error handling
dwc3_qcom_clk_init() is called with of_count_phandle_with_args() as an
argument. If of_count_phandle_with_args() returns an error, the number
of clocks will be a negative value and will lead to undefined behaviour.
Ensure we check for an error before attempting to blindly use the value.
Signed-off-by: Lee Jones <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions