OSDN Git Service

msm: sde: fix unaligned memory read
authorSami Tolvanen <samitolvanen@google.com>
Thu, 17 Aug 2017 21:07:29 +0000 (14:07 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Fri, 27 Sep 2019 07:41:05 +0000 (00:41 -0700)
commit909f81a817f51762bc8c9bc5ad0e9ba0cab71664
treec7bf3b369aff01a8f26fdd1f6301bfecfbbd1478
parentdb9ff16497459edc67a8ef36a6bd51d04285af5f
msm: sde: fix unaligned memory read

Prevent the compiler from combining two 32b writes to 4B-aligned iomem
address, into a single 64b write to a non-8B-aligned iomem address,
where the iomem address is fixed and cannot be realigned.

Prevents a kernel panic
("Unhandled fault: alignment fault (0x96000061)").

Bug: 64527440
Bug: 62093296
Change-Id: I6dafc7427b5c52eb390beebabd5281133889bddc
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://android.googlesource.com/kernel/msm/+/6e1393aa95a31da00a10c6a6f7f66d0fa840aeb6
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
drivers/media/platform/msm/sde/rotator/sde_rotator_r3.c