aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2016-12-07 21:45:27 +0000
committerDaniel Vetter <[email protected]>2016-12-08 10:29:22 +0100
commit72a93e8dd52c9feea42f1258d555e6070680a347 (patch)
tree881432ea83e9dfb888bfd5a52d5175f22703a4a9 /tools/perf/util/trace-event-scripting.c
parentf3f4c4d68a2862c361fd9890998275da5ef02724 (diff)
drm: Take ownership of the dmabuf->obj when exporting
Currently the reference for the dmabuf->obj is incremented for the dmabuf in drm_gem_prime_handle_to_fd() (at the high level userspace interface), but is released in drm_gem_dmabuf_release() (the lowlevel handler). Improve the symmetry of the dmabuf->obj ownership by acquiring the reference in drm_gem_dmabuf_export(). This makes it easier to use the prime functions directly. Signed-off-by: Chris Wilson <[email protected]> [danvet: Update kerneldoc.] Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions