From: Namhyung Kim Date: Wed, 25 May 2011 00:11:26 +0000 (-0700) Subject: mm: nommu: fix a potential memory leak in do_mmap_private() X-Git-Tag: v3.0-rc1~289 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7223bb4a829628bdf37d544ed4363d99bac1ade6;p=pandora-kernel.git mm: nommu: fix a potential memory leak in do_mmap_private() If f_op->read() fails and sysctl_nr_trim_pages > 1, there could be a memory leak between @region->vm_end and @region->vm_top. Signed-off-by: Namhyung Kim Acked-by: Greg Ungerer Cc: David Howells Cc: Paul Mundt Cc: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed