]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/clocksource/arm_arch_timer.c
clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable
authorFrank Rowand <frank.rowand@sony.com>
Sat, 10 Jun 2017 00:26:32 +0000 (17:26 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Jun 2017 13:00:23 +0000 (15:00 +0200)
commit3db1200ca21f3c63c9044185dc5762ef996848cb
tree10abd5bf209dde8eb9342cedd833ea5ab7dadafb
parentff86bf0c65f14346bf2440534f9ba5ac232c39a0
clocksource/drivers/arm_arch_timer: Fix read and iounmap of incorrect variable

Fix boot warning 'Trying to vfree() nonexistent vm area'
from arch_timer_mem_of_init().

Refactored code attempts to read and iounmap using address frame
instead of address ioremap(frame->cntbase).

Fixes: c389d701dfb70 ("clocksource: arm_arch_timer: split MMIO timer probing.")
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: Fu Wei <fu.wei@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_arch_timer.c