summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-06 02:14:21 +0300
committerMark Brown <broonie@kernel.org>2019-12-11 19:49:47 +0300
commit169f9acae08685d4f2a6fd32983958d44e10905d (patch)
tree7b72d21e87f288729ab851ef42b7361003769d7a /tools/perf/scripts/python/check-perf-trace.py
parent4a07b8bcd503c842bcf0171cdbccdfdac3d985c3 (diff)
downloadlinux-169f9acae08685d4f2a6fd32983958d44e10905d.tar.xz
spi: dw: Avoid BUG_ON() in case of host failure
If dws is NULL in dw_spi_host_add(), we return the error to the upper callers instead of crashing. The patch replaces BUG_ON by returning -EINVAL to the caller. Signed-off-by: Aditya Pakki <pakki001@umn.edu> Link: https://lore.kernel.org/r/20191205231421.9333-1-pakki001@umn.edu Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions