From: Chris Wilson Date: Sat, 24 Jul 2010 16:15:11 +0000 (+0100) Subject: drm/vmgfx: operation on ‘par->dirty.y1’ may be undefined X-Git-Tag: v3.12-rc1~8827^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c39721c775f7ac20af5ff1cbbd11f80aeec91baa;p=kernel%2Fkernel-generic.git drm/vmgfx: operation on ‘par->dirty.y1’ may be undefined Trivial fix to set y1 = y2 = 0. Signed-off-by: Chris Wilson Cc: Jakob Bornecrantz Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index b0866f0..870967a 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c @@ -528,7 +528,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv) * Dirty & Deferred IO */ par->dirty.x1 = par->dirty.x2 = 0; - par->dirty.y1 = par->dirty.y1 = 0; + par->dirty.y1 = par->dirty.y2 = 0; par->dirty.active = true; spin_lock_init(&par->dirty.lock); info->fbdefio = &vmw_defio;