From: David Howells Date: Mon, 1 Dec 2008 21:14:00 +0000 (-0800) Subject: frv: fix mmap2 error handling X-Git-Tag: v2.6.28-rc7~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4280e3126f641898f0ed1a931645373d3489e2a6;p=pandora-kernel.git frv: fix mmap2 error handling Fix the error handling in sys_mmap2(). Currently, if the pgoff check fails, fput() might have to be called (which it isn't), so do the pgoff check first, before fget() is called. Signed-off-by: David Howells Reported-by: Julia Lawall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed