Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2db00cf5 authored by Mark Yao's avatar Mark Yao
Browse files

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: default avatarMark Yao <mark.yao@rock-chips.com>
parent 44d0237a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");