drm/bridge: anx7625: Fix overflow issue on reading EDID
authorPin-Yen Lin <treapking@chromium.org>
Thu, 10 Feb 2022 10:38:27 +0000 (18:38 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 14 Feb 2022 15:21:59 +0000 (16:21 +0100)
commitd5c6f647aec9ed524aedd04a3aec5ebc21d39007
tree437d483280fbe6dcff6264a0e238059a5b110e19
parent7db47b838896ec2bb57e3d0b329804b84f32626c
drm/bridge: anx7625: Fix overflow issue on reading EDID

The length of EDID block can be longer than 256 bytes, so we should use
`int` instead of `u8` for the `edid_pos` variable.

Fixes: 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")
Signed-off-by: Pin-Yen Lin <treapking@chromium.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220210103827.402436-1-treapking@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c