x86/mm/init.c: Fix devmem_is_allowed() off by one
authorT Makphaibulchoke <tmac@hp.com>
Wed, 29 Aug 2012 03:21:43 +0000 (21:21 -0600)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 Sep 2012 15:35:54 +0000 (17:35 +0200)
commit73e8f3d7e2cb23614d5115703d76d8e54764b641
treec7edef261d3ea49550801297a98b5890493252e1
parent4454d32749465ffa77d82bc1fdd196d6dedc544b
x86/mm/init.c: Fix devmem_is_allowed() off by one

Fixing 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>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Cc: yinghai@kernel.org
Cc: tiwai@suse.de
Cc: dhowells@redhat.com
Link: http://lkml.kernel.org/r/1346210503-14276-1-git-send-email-tmac@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/init.c