diff options
author | David Howells <dhowells@redhat.com> | 2008-12-01 22:14:00 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-02 04:55:24 +0100 |
commit | 4280e3126f641898f0ed1a931645373d3489e2a6 (patch) | |
tree | d4ba29d8a61958e0e039d144734c883e50232e15 /lib | |
parent | taint: add missing comment (diff) | |
download | linux-4280e3126f641898f0ed1a931645373d3489e2a6.tar.xz linux-4280e3126f641898f0ed1a931645373d3489e2a6.zip |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions