[ARM] 4153/1: fix consistent_sync() off-by-one BUG check
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 8 Feb 2007 15:26:23 +0000 (16:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Feb 2007 15:29:00 +0000 (15:29 +0000)
commit3e1a80f11f89f318e892694b501735abb51ef626
tree668ae6bb4240371f4fd772b2bc5faaf6ada9166e
parent7ae5a761d2ffc4cf7d3248e09f4d3da234434f30
[ARM] 4153/1: fix consistent_sync() off-by-one BUG check

In consistent_sync(), start + size can end up pointing one byte
beyond the end of the direct RAM mapping.  We shouldn't BUG() when
this happens.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/consistent.c