aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorDave Gordon <[email protected]>2016-04-12 14:46:16 +0100
committerTvrtko Ursulin <[email protected]>2016-04-20 16:59:03 +0100
commit8305216ff831ebc47d6335f577448e6c0453fc82 (patch)
tree5c4f2130dd75a4f120ad448bedcc194db060cbaf /tools/perf/scripts/python/syscall-counts-by-pid.py
parent86e06cc0c0ecf3fdfe04ff48fccb34891767d514 (diff)
drm/i915: check for ERR_PTR from i915_gem_object_pin_map()
The newly-introduced function i915_gem_object_pin_map() returns an ERR_PTR (not NULL) if the pin-and-map opertaion fails, so that's what we must check for. And it's nicer not to assign such a pointer-or-error to a structure being filled in until after it's been validated, so we should keep it local and avoid exporting a bogus pointer. Also, for clarity and symmetry, we should clear 'virtual_start' along with 'vma' when unmapping a ringbuffer. Signed-off-by: Dave Gordon <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions