]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7917/1: cacheflush: correctly limit range of memory region being flushed
authorJon Medhurst <tixy@linaro.org>
Mon, 9 Dec 2013 12:45:46 +0000 (13:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Dec 2013 23:24:35 +0000 (23:24 +0000)
commite0cb89a0bd2dee8d5a5b65794abd213f5fba6695
treeeca8de340db8e002f3c53a1cf1fe8d3272951a2c
parentd6cd6b5b72ccc87177502f550f5f311bc9fc99d9
ARM: 7917/1: cacheflush: correctly limit range of memory region being flushed

The __do_cache_op function operates with a 'chunk' size of one page
but fails to limit the size of the final chunk so as to not exceed
the specified memory region. Fix this.

Cc: <stable@vger.kernel.org>
Reported-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c