diff options
author | Mark Yao <mark.yao@rock-chips.com> | 2016-04-29 15:39:53 +0800 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2016-05-03 14:11:23 +0800 |
commit | 2db00cf5a07b7c543392ff88163428509cda38ae (patch) | |
tree | d6c5da68fe53782c90f177e3f7b0244cc1ef80b6 /drivers/gpu/drm | |
parent | 44d0237a26395ac94160cf23f32769013b365590 (diff) | |
download | op-kernel-dev-2db00cf5a07b7c543392ff88163428509cda38ae.zip op-kernel-dev-2db00cf5a07b7c543392ff88163428509cda38ae.tar.gz |
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 <mark.yao@rock-chips.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 8652bb1..bf55cda 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"); |