mmap: check ->vm_ops before dereferencing
authorRik van Riel <riel@redhat.com>
Mon, 26 Apr 2010 16:33:03 +0000 (12:33 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Apr 2010 15:26:51 +0000 (08:26 -0700)
Check whether the VMA has a vm_ops before calling close, just
like we check vm_ops before calling open a few dozen lines
higher up in the function.

Signed-off-by: Rik van Riel <riel@redhat.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found