]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4839/1: fixes kernel Oops in /dev/mem device driver for memory map with PHYS_OFF
authorAlexandre Rusev <arusev@ru.mvista.com>
Tue, 26 Feb 2008 17:42:10 +0000 (18:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 29 Feb 2008 22:47:20 +0000 (22:47 +0000)
commit27cbb05b0bc40412f78f021039ef03450898b0e2
tree84d6277d5e84576cc47fd815828352de99d3068f
parentc47487ec59d781b1b0b8d9e7a4853874824f775d
[ARM] 4839/1: fixes kernel Oops in /dev/mem device driver for memory map with PHYS_OFF

"cat /dev/mem" may cause kernel Oops for boards with PHYS_OFFSET != 0
because character device is mapped to addresses starting from zero
and there is no protection against such situation.
Patch just add this.

Signed-off-by: Alexandre Rusev <arusev@ru.mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mmap.c