drm/prime: warn for non-empty handle lookup list during drm file release
authorImre Deak <imre.deak@intel.com>
Wed, 24 Apr 2013 16:04:57 +0000 (19:04 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 1 May 2013 06:08:18 +0000 (16:08 +1000)
commit98b76231d7ef49c71c7fea354f00c619ab2c1be4
tree0fd0a1fe3a178c58181b5b1f848ceb4f933f11ad
parent33896bf3207d8812274747b8b96776d27082e580
drm/prime: warn for non-empty handle lookup list during drm file release

drm_gem_release should release all handles connected to the drm file and
so should also release the prime lookup entries of these handles. So
just WARN if this isn't the case.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c