summaryrefslogtreecommitdiff
path: root/drivers/rapidio/switches
diff options
context:
space:
mode:
authorMaciej Purski <m.purski@samsung.com>2017-11-22 12:08:38 +0300
committerAndrzej Hajda <a.hajda@samsung.com>2018-06-13 17:26:57 +0300
commit9378cecb1ce5d618b8aff4d65113ddcf72fc1011 (patch)
tree7a9825db8a416f8995020054deb5e74d76e6fb97 /drivers/rapidio/switches
parentecba7cfa3afbe489288f2c819158b7402afd7ee9 (diff)
downloadlinux-9378cecb1ce5d618b8aff4d65113ddcf72fc1011.tar.xz
drm/bridge/sii8620: fix potential buffer overflow
Buffer overflow error should not occur, as mode_fixup() callback filters pixel clock value and it should never exceed 600000. However, current implementation is not obviously safe and relies on implementation of mode_fixup(). Make 'i' variable never reach unsafe value in order to avoid buffer overflow error. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: bf1722ca ("drm/bridge/sii8620: rewrite hdmi start sequence") Signed-off-by: Maciej Purski <m.purski@samsung.com> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/1511341718-6974-1-git-send-email-m.purski@samsung.com
Diffstat (limited to 'drivers/rapidio/switches')
0 files changed, 0 insertions, 0 deletions