Skip to content
Commit c03e946f authored by Eric Biggers's avatar Eric Biggers Committed by Linus Torvalds
Browse files

userfaultfd: add missing mmput() in error path



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

Signed-off-by: default avatarEric Biggers <ebiggers3@gmail.com>
Signed-off-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 62bef58a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment