From: Ben Skeggs Date: Thu, 11 Apr 2013 00:12:48 +0000 (+1000) Subject: drm/nouveau/disp: fix uninitialised eq_done in error path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5bd028baae4b738075f16d00f9f857eb439cd93;p=linux-beck.git drm/nouveau/disp: fix uninitialised eq_done in error path Reported-by: Andrew Morton Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c index fa27b02ff829..31cc8fe8e7f0 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c @@ -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);