summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-05-19 18:56:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-19 20:36:32 +0100
commit0109808145180d0ed3da05361f80839e6c80caeb (patch)
tree142eb1525f66cc4bc39d71dcddcbf208a2e82e33 /tools/perf/scripts/python/export-to-postgresql.py
parent00bd16f257a4cd94305bb6e1c73f7c93c196ffc7 (diff)
drm/i915: Check for allocation failure
The memory allocation for C is not being null checked and hence we could end up with a null pointer dereference. Fix this with a null pointer check. (I really should have noticed this when I was fixing an earlier issue.) Detected by CoverityScan, CID#1436406 ("Dereference null return") Fixes: 47624cc3301b60 ("drm/i915: Import the kfence selftests for i915_sw_fence") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170519175617.7036-1-colin.king@canonical.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions