]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: dw-mipi-dsi: avoid out-of-bounds read on tx_buf
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:49 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:51 +0000 (14:48 -0500)
commit2ed88858bc22e9735ce080fe71c71ad063e63d43
tree38210b19756522b5d8521ca8d270d64ab82cc920
parent51429bb77f6bfc5a0c0c263f19183ccb099fd8bf
drm/rockchip: dw-mipi-dsi: avoid out-of-bounds read on tx_buf

As a side-effect of this, encode the endianness explicitly rather than
casting a u16.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-7-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c