From: Dave Airlie Date: Sat, 12 Jul 2008 06:32:09 +0000 (+1000) Subject: modesetting/helper: fix array overrun - count should be reset here X-Git-Tag: submit/1.0/20121108.012404~642^2~109^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9089c45570c7b2df9155c2cd73aeea59cc0e34e;p=profile%2Fivi%2Flibdrm.git modesetting/helper: fix array overrun - count should be reset here --- diff --git a/linux-core/drm_crtc_helper.c b/linux-core/drm_crtc_helper.c index 18fc9d9..ec76aa9 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;