drm/vmgfx: operation on ‘par->dirty.y1’ may be undefined
Trivial fix to set y1 = y2 = 0. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
committed by
Dave Airlie
parent
90c1efdd12
commit
c39721c775
@@ -528,7 +528,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
|
|||||||
* Dirty & Deferred IO
|
* Dirty & Deferred IO
|
||||||
*/
|
*/
|
||||||
par->dirty.x1 = par->dirty.x2 = 0;
|
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;
|
par->dirty.active = true;
|
||||||
spin_lock_init(&par->dirty.lock);
|
spin_lock_init(&par->dirty.lock);
|
||||||
info->fbdefio = &vmw_defio;
|
info->fbdefio = &vmw_defio;
|
||||||
|
Reference in New Issue
Block a user