]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/rockchip: dw-mipi-dsi: don't assume buffer is aligned
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:53 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:53 +0000 (14:48 -0500)
commit1ed498b03d3e999dd270815a2f18f0b81998b83f
tree8d519fb27e237faa74f8584914bb64ace68cc970
parent7361c6f82940db147e6bbfd3ae2b8359d1004020
drm/rockchip: dw-mipi-dsi: don't assume buffer is aligned

By dereferencing the MIPI command buffer as a u32* we rely on it being
correctly aligned on ARM, but this may not be the case.  Copy it into a
stack variable that will be correctly aligned.

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