Files
linux/drivers
Gerd Hoffmann 1142e84ccb UPSTREAM: 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 <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181019061847.18958-7-kraxel@redhat.com
(cherry picked from commit 6c1cd97bda)
Signed-off-by: Greg Hartman <ghartman@google.com>
BUG: 139386237
Change-Id: I4e1565804c923d18096edce63a5166015f4c9a4c
2019-08-19 11:29:51 -07:00
..
2019-08-04 09:37:11 +02:00
2019-08-16 11:27:10 +02:00
2019-08-16 11:27:10 +02:00
2019-08-16 11:27:10 +02:00
2019-05-14 19:17:53 +02:00
2019-08-16 11:27:10 +02:00
2019-07-26 10:31:53 +02:00
2019-08-06 20:08:18 +02:00
2019-08-16 11:27:10 +02:00
2019-08-16 11:27:10 +02:00
2019-06-09 09:27:18 +02:00
2019-02-12 20:37:21 +01:00
2019-07-26 09:14:05 +02:00
2019-08-11 15:21:36 +02:00
2019-06-15 16:12:59 +02:00
2019-08-16 11:27:10 +02:00
2019-08-04 09:30:55 +02:00
2019-05-31 06:46:14 -07:00