drm/nouveau/disp: fix uninitialised eq_done in error path
authorBen Skeggs <bskeggs@redhat.com>
Thu, 11 Apr 2013 00:12:48 +0000 (10:12 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:31 +0000 (15:37 +1000)
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/dport.c

index fa27b02..31cc8fe 100644 (file)
@@ -191,7 +191,7 @@ dp_link_train_cr(struct dp_state *dp)
 static int
 dp_link_train_eq(struct dp_state *dp)
 {
-       bool eq_done, cr_done = true;
+       bool eq_done = false, cr_done = true;
        int tries = 0, i;
 
        dp_set_training_pattern(dp, 2);