diff options
| author | David Howells <[email protected]> | 2008-12-01 21:14:00 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-12-02 03:55:24 +0000 |
| commit | 4280e3126f641898f0ed1a931645373d3489e2a6 (patch) | |
| tree | d4ba29d8a61958e0e039d144734c883e50232e15 /net/unix/af_unix.c | |
| parent | taint: add missing comment (diff) | |
| download | kernel-4280e3126f641898f0ed1a931645373d3489e2a6.tar.gz kernel-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 <[email protected]>
Reported-by: Julia Lawall <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
