diff options
author | Chen Gang <xili_gchen_5257@hotmail.com> | 2015-11-05 18:48:35 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 19:34:48 -0800 |
commit | 1e3ee14b9355a688ffe24725fa746ab120c42881 (patch) | |
tree | e70d8443ce609a7f88059c9e305828b19c3fc123 /mm/nommu.c | |
parent | e6ee219fdd69c87ceaeb421bcd753a63937f8f31 (diff) | |
download | linux-1e3ee14b9355a688ffe24725fa746ab120c42881.tar.gz linux-1e3ee14b9355a688ffe24725fa746ab120c42881.tar.bz2 linux-1e3ee14b9355a688ffe24725fa746ab120c42881.zip |
mm/mmap.c: do not initialize retval in mmap_pgoff()
When fget() fails we can return -EBADF directly.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions