aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorGerd Hoffmann <[email protected]>2018-10-19 08:18:47 +0200
committerGerd Hoffmann <[email protected]>2018-10-29 22:50:55 +0100
commit6c1cd97bdaffa2ae1dbdc8a0857931308ac647cd (patch)
tree5a23cc28ebea931ff5d800dcff7a9268e3bb0fbe /tools/lib/api/debug.c
parent724cfdfd667a28dbfb5365b76df4ccf39cf9a09a (diff)
drm/virtio: fix resource id handling
Move virtio_gpu_resource_id_{get,put} to virtgpu_object.c and make them static. Allocate and free the id on creation and destroy, drop all other calls. That way objects have a valid handle for the whole lifetime of the object. Also fixes ids leaking. Worst offender are dumb buffers, and I think some error paths too. Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions