mm: nommu: check the vma list when unmapping file-mapped vma
authorNamhyung Kim <namhyung@gmail.com>
Wed, 25 May 2011 00:11:25 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:06 +0000 (08:39 -0700)
commitd75a310c42c616c168953ed45c1091074f97828c
tree95b4f45787b3d1820987439c8e8bbbbd5158fe14
parente922c4c5360980bfeb862b3ec307d36bb344dcae
mm: nommu: check the vma list when unmapping file-mapped vma

Now we have the sorted vma list, use it in do_munmap() to check that we
have an exact match.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c