From: Mark Yao Date: Fri, 29 Apr 2016 07:08:24 +0000 (+0800) Subject: drm/rockchip: vop: Initialize vskiplines to zero X-Git-Tag: firefly_0821_release~2692 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47510f4818dba13c4ca99e292bcd74a552ec2d92;p=firefly-linux-kernel-4.4.55.git drm/rockchip: vop: Initialize vskiplines to zero There is a path that use vskiplines with non-initialize. That would cause vop abnormal behavior. Change-Id: I53c6c575d6acc16aeae761dbb4867f3bc8bfe5ce Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 1a55b9ed15a8..efa92936d303 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -341,7 +341,7 @@ static void scl_vop_cal_scl_fac(struct vop *vop, struct vop_win *win, uint16_t vsu_mode; uint16_t lb_mode; uint32_t val; - int vskiplines; + int vskiplines = 0; if (!win->phy->scl) return;