drm: fix fbs in DRM_IOCTL_MODE_GETRESOURCES ioctl
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 3 Jun 2011 10:54:14 +0000 (12:54 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Jun 2011 04:31:09 +0000 (14:31 +1000)
commit618c75e491a5a50cd3819eaf5f853fd87df3ae42
treedee705f2c628c276be7b07a7c44067f62bccb406
parent06e86849cf4019945a106913adb9ff0abcc01770
drm: fix fbs in DRM_IOCTL_MODE_GETRESOURCES ioctl

The DRM_IOCTL_MODE_GETRESOURCES ioctl just returns bogus framebuffers.
That is because the framebuffers for each file are in the filp_head
member of struct drm_framebuffer, not in the head member.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c