summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-06-02 14:33:42 +1000
committerDave Airlie <airlied@redhat.com>2008-06-02 14:33:42 +1000
commitc321bc4f9280fe93e2df2b1c47e13cba7499e486 (patch)
tree2fc17b3f6e0ac69c2f5fc4659bb51bfcc68a3e72 /linux-core
parent4e7b24639808e5e1e2c05143028db1a3bc2812e9 (diff)
drm: only report framebuffers available on this fd.
Not 100% sure this is a good idea, but I think I'd rather things communicate with bo handles not fb ids.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 7746fd50..d82d8390 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -780,7 +780,7 @@ int drm_mode_getresources(struct drm_device *dev,
mutex_lock(&dev->mode_config.mutex);
- list_for_each(lh, &dev->mode_config.fb_list)
+ list_for_each(lh, &file_priv->fbs)
fb_count++;
list_for_each(lh, &dev->mode_config.crtc_list)
@@ -802,7 +802,7 @@ int drm_mode_getresources(struct drm_device *dev,
if (card_res->count_fbs >= fb_count) {
copied = 0;
fb_id = (uint32_t *)(unsigned long)card_res->fb_id_ptr;
- list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
+ list_for_each_entry(fb, &file_priv->fbs, head) {
if (put_user(fb->id, fb_id + copied)) {
ret = -EFAULT;
goto out;