From: Mark Yao Date: Fri, 29 Apr 2016 07:39:53 +0000 (+0800) Subject: drm/rockchip: vop: Initialize vskiplines to zero X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2db00cf5a07b7c543392ff88163428509cda38ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/rockchip: vop: Initialize vskiplines to zero There is a path that use vskiplines with non-initialize. That would cause vop abnormal behavior. 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 8652bb132395..bf55cda356ba 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -310,7 +310,7 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, uint16_t vsu_mode; uint16_t lb_mode; uint32_t val; - int vskiplines; + int vskiplines = 0; if (dst_w > 3840) { DRM_ERROR("Maximum destination width (3840) exceeded\n");