Skip to content

Commit

Permalink
drm/rockchip: vop: Initialize vskiplines to zero
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Yao committed May 3, 2016
1 parent 44d0237 commit 2db00cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rockchip/rockchip_drm_vop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 2db00cf

Please sign in to comment.