From: Alexandre Rusev Date: Tue, 26 Feb 2008 17:42:10 +0000 (+0100) Subject: [ARM] 4839/1: fixes kernel Oops in /dev/mem device driver for memory map with PHYS_OFF X-Git-Tag: v2.6.25-rc4~128^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ae3ae0bebb9a3a348dc233229008b126014889d;p=pandora-kernel.git [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 Signed-off-by: Russell King --- Reading git-diff-tree failed