David Howells 4280e3126f 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 <dhowells@redhat.com>
Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-12-01 19:55:24 -08:00
..
2008-08-01 13:03:49 -07:00
2008-04-17 10:42:34 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 01:09:42 +02:00
2005-04-16 15:20:36 -07:00
2008-04-17 10:42:34 -04:00
2006-01-08 20:13:37 -08:00
2008-10-16 11:21:47 -07:00
2007-07-17 10:23:03 -07:00
2008-04-29 08:06:02 -07:00
2008-12-01 19:55:24 -08:00
2008-02-13 13:29:25 -08:00
2006-06-23 07:42:54 -07:00