]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
devmem: add range_is_allowed() check to mmap of /dev/mem
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Fri, 7 Mar 2008 07:01:47 +0000 (23:01 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Apr 2008 21:40:47 +0000 (23:40 +0200)
commite2beb3eae627211b67e456c53f946cede2ac10d7
treef0b629adb961004b9026cb3b2ff4d1d370dbc01f
parentae531c26c5c2a28ca1b35a75b39b3b256850f2c8
devmem: add range_is_allowed() check to mmap of /dev/mem

Earlier patch that introduced CONFIG_NONPROMISC_DEVMEM, did the
range_is_allowed() check only for read and write. Add range_is_allowed()
check to mmap of /dev/mem as well.

Changes the paramaters of range_is_allowed() to pfn and size to handle
more than 32 bits of physical address on 32 bit arch cleanly.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/char/mem.c