]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/mm/init.c: devmem_is_allowed() off by one
authorT Makphaibulchoke <tmac@hp.com>
Fri, 7 Sep 2012 00:17:50 +0000 (10:17 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Sep 2012 06:17:49 +0000 (16:17 +1000)
commit9f9e1ca4656cc0f8297e3a4acfacf3cf892efe45
treec1564439a17acd44fb9d308cace09d1ecb9d16b8
parentabcaffa21bd746ae57f6f75c6c94c69c627293e8
x86/mm/init.c: devmem_is_allowed() off by one

Fix an off-by-one error in devmem_is_allowed(), which allows accesses to
physical addresses 0x100000-0x100fff, an extra page past 1MB.

Signed-off-by: T Makphaibulchoke <tmac@hp.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/init.c