summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-24 22:26:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-05-27 10:27:34 +0100
commitc2df2201b6933e927de24742a314ba2e0d13efd2 (patch)
treeb0d176c0e8962377f51205d889b9f3800ac43cbb /tools/perf/scripts/python
parent5c27de1df85066f2801f1ec406e641fdde178151 (diff)
downloadlinux-c2df2201b6933e927de24742a314ba2e0d13efd2.tar.gz
linux-c2df2201b6933e927de24742a314ba2e0d13efd2.zip
drm/i915/gtt: set err to -ENOMEM on memory allocation failure
Currently when the allocation of ppgtt->work fails the error return path via err_free returns an uninitialized value in err. Fix this by setting err to the appropriate error return of -ENOMEM. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: d3622099c76f ("drm/i915/gtt: Always acquire struct_mutex for gen6_ppgtt_cleanup") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190524212627.24256-1-colin.king@canonical.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions