Skip to content

Commit d2d6672

Browse files
ashinlinjamess-huang
authored andcommitted
HDMI : Fix the kernel panic when changing the resolution from big(1080p) to small(480p)
Change-Id: I957d117b4a1a8f9956765864dbd9f314d98c8d6d Reviewed-on: https://tp-biosrd-v02/gerrit/82325 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent b985905 commit d2d6672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ static size_t vop_plane_line_bandwidth(struct drm_plane_state *pstate)
21132113
int vskiplines = scl_get_vskiplines(src_height, dest_height);
21142114
size_t bandwidth;
21152115

2116-
if (!src_width || !src_height || !dest_width || !dest_height)
2116+
if (src_width <= 0 || src_height <= 0 || dest_width <= 0 || dest_height <= 0)
21172117
return 0;
21182118

21192119
bandwidth = src_width * bpp / 8;

0 commit comments

Comments
 (0)