]> 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)
commit8930273bdbda04ad98e63560b3f14a25dbe4035c
treeec38f8e9d9626f143f4578b645df0e71f9f97d5a
parentea7febd3304486596791bb35d52c496ef304045d
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 d8269d368699 ("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