modesetting/helper: fix array overrun - count should be reset here

main
Dave Airlie 2008-07-12 16:32:09 +10:00
parent 0b7d9a97bd
commit a9089c4557
1 changed files with 2 additions and 1 deletions

View File

@ -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;