Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: 7304/1: ioremap: fix boundary check when reusing static mapping
Since commit 576d2f2 "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 <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Russell King <[email protected]>
- Loading branch information