aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-10-09 11:00:24 +0100
committerChris Wilson <[email protected]>2019-10-09 11:16:14 +0100
commitd46e137c44974938bc08700000a4b1231491ca8a (patch)
treea7a1ad992ab799c145f2b964701cbf20f4fa9bf6 /tools/perf/scripts/python/exported-sql-viewer.py
parent41f0bc49f7f2014feab8b278fea2adaea6ccaf4e (diff)
drm/i915/selftests: fix null pointer dereference on pointer data
In the case where data fails to be allocated the error exit path is via label 'out' where data is dereferenced in a for-loop. Fix this by exiting via the label 'out_file' instead to avoid the null pointer dereference. Addresses-Coverity: ("Dereference after null check") Fixes: 50d16d44cce4 ("drm/i915/selftests: Exercise context switching in parallel") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions