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)
commitdad17ed01e81c1d697b98632ea126d95e2a1e8d4
tree38210b19756522b5d8521ca8d270d64ab82cc920
parent480564a033360779dd8494e918c7586ff72c395b
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