[PATCH] ARM: ioremap: fix boundary check when reusing static mapping
pawel.moll at arm.com
Thu Jan 26 05:35:42 EST 2012
On Wed, 2012-01-25 at 18:37 +0000, Nicolas Pitre wrote:
> On Wed, 25 Jan 2012, Pawel Moll wrote:
> > Since commit 576d2f2525612ecb5af029a76f21f22a3b82563d "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.
> ... when what?
Apparently I was hungry and ate the second half of the sentence ;-)
... when requested mapping crosses end of the static one.
More information about the linux-arm-kernel