]> git.baikalelectronics.ru Git - kernel.git/commit
fix bogon in /dev/mem mmap'ing on nommu
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 17 Apr 2007 05:53:16 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Apr 2007 23:36:27 +0000 (16:36 -0700)
commit21d73ecd170bd62fe3650bad9820c58e8239a1cb
tree6a1ce03d17f7ffdeef57e9ff07804a9fff089fc8
parent4605d94d05ce75b71b0aaac8a4faec772921e5ed
fix bogon in /dev/mem mmap'ing on nommu

While digging through my MAP_FIXED changes, I found that rather obvious
bug in /dev/mem mmap implementation for nommu archs. get_unmapped_area()
is expected to return an address, not a pfn.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-By: David Howells <dhowells@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c