userfaultfd: add missing mmput() in error path
authorEric Biggers <ebiggers3@gmail.com>
Thu, 17 Sep 2015 23:01:54 +0000 (16:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 Sep 2015 04:16:07 +0000 (21:16 -0700)
commitc03e946fdd653c4a23e242aca83da7e9838f5b00
treef3b2987c0f9ff231cf64bf2bcfb93aa9fc9e105a
parent62bef58a55dfa8ada2a22b2496c6340468ecd98a
userfaultfd: add missing mmput() in error path

This fixes a memleak if anon_inode_getfile() fails in userfaultfd().

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/userfaultfd.c