drm/prime: add exported buffers to current fprivs imported buffer list (v2)
authorDave Airlie <airlied@redhat.com>
Sun, 20 May 2012 16:31:16 +0000 (17:31 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2012 09:46:03 +0000 (10:46 +0100)
commit0ff926c7d4f06f9703226dc09acad17e86f169d6
treec0f4036c17f0fe5944ca56ef519774f0f9b3ad45
parent51ab7ba2673758561074184795bba5bac780a038
drm/prime: add exported buffers to current fprivs imported buffer list (v2)

If userspace attempts to import a buffer it exported on the same device,
we need to return the same GEM handle for it, not a new handle pointing
at the same GEM object.

v2: move removals into a single fn, no need to set to NULL. (Chris Wilson)

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_prime.c