diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-03-13 14:59:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-13 15:21:47 -0700 |
commit | 6d7825b10dbeafd60627cd04291fb10ec2b5b973 (patch) | |
tree | 665fe65bbb0f931dc5d89596c0c12d2569638ea3 /lib/xz | |
parent | c8615d3716fe327c2540cf514a34b227dc9b39e8 (diff) | |
download | linux-3.10-6d7825b10dbeafd60627cd04291fb10ec2b5b973.tar.gz linux-3.10-6d7825b10dbeafd60627cd04291fb10ec2b5b973.tar.bz2 linux-3.10-6d7825b10dbeafd60627cd04291fb10ec2b5b973.zip |
mm/fremap.c: fix oops on error path
If find_vma() fails, sys_remap_file_pages() will dereference `vma', which
contains NULL. Fix it by checking the pointer.
(We could alternatively check for err==0, but this seems more direct)
(The vm_flags change is to squish a bogus used-uninitialised warning
without adding extra code).
Reported-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/xz')
0 files changed, 0 insertions, 0 deletions