]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/bridge/sii8620: Fix memory corruption
authorMaciej Purski <m.purski@samsung.com>
Mon, 21 Aug 2017 10:32:51 +0000 (12:32 +0200)
committerAndrzej Hajda <a.hajda@samsung.com>
Thu, 24 Aug 2017 17:06:32 +0000 (19:06 +0200)
commit79964dbaf662229253b281c42e82e2675a9d3b80
treea8cffc0f30666eb06ef4a4c077ed8d15fcaafcda
parentfe4600a548f2763dec91b3b27a1245c370ceee2a
drm/bridge/sii8620: Fix memory corruption

Function sii8620_mt_read_devcap_reg_recv() used to read array index
from a wrong msg register, which caused writing out of array
bounds. It led to writing on other fields of struct sii8620.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Fixes: e9c6da270 ("drm/bridge/sii8620: add reading device capability
       registers")
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1503311571-25819-1-git-send-email-m.purski@samsung.com
drivers/gpu/drm/bridge/sil-sii8620.c