parisc: fix wrong page aligned size calculation in ioremapping code
authorFlorian Zumbiehl <florz@florz.de>
Wed, 11 Aug 2010 21:17:33 +0000 (14:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 15:43:29 +0000 (08:43 -0700)
commita292dfa01794477126d3f022559eb235edde00b0
treeabc2ca6ec588491e07940ce674b4bac71571d8d7
parent17e465034a174d23e08cbb964aeda5e41e5d84ca
parisc: fix wrong page aligned size calculation in ioremapping code

parisc __ioremap(): fix off-by-one error in page alignment of allocation
size for sizes where size%PAGE_SIZE==1.

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Acked-by: Helge Deller <deller@gmx.de>
Tested-by: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/parisc/mm/ioremap.c