]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/clocksource/pistachio: Fix memory corruption in init
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Wed, 17 Aug 2016 10:22:33 +0000 (12:22 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 26 Aug 2016 13:55:59 +0000 (15:55 +0200)
commit586b97a4afd157ea82d4ee48a9a31c786c65a747
treeec38f8e9d9626f143f4578b645df0e71f9f97d5a
parentdf0eac4e57b0c10abf31c51d73054649763065ca
drivers/clocksource/pistachio: Fix memory corruption in init

Driver init code incorrectly uses the block base address and as a result
clears clocksource structure's fields instead of the hardware registers.

Commit eb2df1cda64f ("timekeeping: Lift clocksource cacheline
restriction") has changed the offsets within pistachio_clocksource
structure and what has previously gone unnoticed now leads to a kernel
panic during boot.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/time-pistachio.c