]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7304/1: ioremap: fix boundary check when reusing static mapping
authorPawel Moll <pawel.moll@arm.com>
Thu, 26 Jan 2012 10:47:11 +0000 (11:47 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 27 Jan 2012 21:26:38 +0000 (21:26 +0000)
commit17a9de42ac599ef0e3a5f127af227d744fe830ed
treeaeddc0dd01e9e9f5a690f90ddb1bfb7a588ea929
parent64f8a041d8e2d60b816c58dc0b4819522366cf5b
ARM: 7304/1: ioremap: fix boundary check when reusing static mapping

Since commit 825f0aca846eee5dbc96ff2901b0127adf5312df "ARM: add
generic ioremap optimization by reusing static mappings" ioremap()
is trying to reuse existing static mapping when possible.

The condition checking boundaries of the requested and existing
mappings didn't take in-page offset into consideration though,
which lead to obscure and hard to debug problems when requested
mapping crossed end of the static one.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/ioremap.c