summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-07-12 16:32:09 +1000
committerDave Airlie <airlied@linux.ie>2008-07-12 16:32:09 +1000
commita9089c45570c7b2df9155c2cd73aeea59cc0e34e (patch)
treeed33f32ed2cb201a90b31f50e9bcfc7d4aafee7b
parent0b7d9a97bd2383fe4382fc1b1b266542020f0c4e (diff)
modesetting/helper: fix array overrun - count should be reset here
-rw-r--r--linux-core/drm_crtc_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/drm_crtc_helper.c b/linux-core/drm_crtc_helper.c
index 18fc9d98..ec76aa93 100644
--- a/linux-core/drm_crtc_helper.c
+++ b/linux-core/drm_crtc_helper.c
@@ -566,7 +566,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
ret = -EINVAL;
goto fail_no_encoder;
}
-
+
+ count = 0;
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
if (!connector->encoder)
continue;