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)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 13 Jan 2016 01:29:16 +0000 (10:29 +0900)
commit84b3040621682b8354ed4d490a3c561d2de95c0a
tree30e64e4f4444c58936e478264d9ac0dea848dc14
parent1d30c734ef12af8b5758f1d44eae772982606305
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.

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