summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-16 12:42:21 +0100
committerJani Nikula <jani.nikula@intel.com>2020-06-30 14:26:51 +0300
commit607856a835539c465015882328f1e37e95de8ee7 (patch)
tree87843338f50f2761ac9c44b0aa3bc2fbfc402468 /tools/perf/scripts/python/exported-sql-viewer.py
parent0e2feab51b38fbcd40427254d7e599832e73b797 (diff)
drm/i915/display: fix missing null check on allocated dsb object
Currently there is no null check for a failed memory allocation on the dsb object and without this a null pointer dereference error can occur. Fix this by adding a null check. Note: added a drm_err message in keeping with the error message style in the function. Addresses-Coverity: ("Dereference null return") Fixes: afeda4f3b1c8 ("drm/i915/dsb: Pre allocate and late cleanup of cmd buffer") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200616114221.73971-1-colin.king@canonical.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions