]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: it6505: Fix the read buffer array bound
authorHsin-Yi Wang <hsinyi@chromium.org>
Mon, 28 Feb 2022 08:14:21 +0000 (16:14 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 28 Feb 2022 15:10:13 +0000 (16:10 +0100)
commit9cb7edfd6f60c15621a62a908f9750e8675ca8ec
tree951006d944b35447f3236e5cb79153b403430884
parent979bdb0bb321de9af38e4e289f44814b70e40370
drm/bridge: it6505: Fix the read buffer array bound

The size of read_buf is READ_BUFFER_SIZE (200), so we can't access it
with read_buf + PAGE_SIZE (4096). Extend the READ_BUFFER_SIZE to 400 and
set the end position to read_buf + READ_BUFFER_SIZE.

Fixes: d9992fae4dbc54 ("drm/bridge: add it6505 driver")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220228081421.1504213-1-hsinyi@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c