drm: fix locking in gem debugfs/procfs file
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 13:41:33 +0000 (15:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Aug 2013 04:16:47 +0000 (14:16 +1000)
commit90254ac084a6465e46cdada933bf3a7e9ee90277
tree0ab7e76810518282ba09f42eeeebb7f6fffbbef2
parent6eb9278adabd17da3bc1cb843c729d1b10d79c93
drm: fix locking in gem debugfs/procfs file

The idr is protected with our spinlock, if we don't hold that nothing
prevents the gem objects from disappearing from under us.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_info.c