mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
userfaultfd: use mmgrab instead of open-coded increment of mm_count
Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: "Dr . David Alan Gilbert" <[email protected]> Cc: Mike Kravetz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
85ccc8fa81
commit
00bb31fa44
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ int dup_userfaultfd(struct vm_area_struct *vma, struct list_head *fcs)
|
|||
ctx->features = octx->features;
|
||||
ctx->released = false;
|
||||
ctx->mm = vma->vm_mm;
|
||||
atomic_inc(&ctx->mm->mm_count);
|
||||
mmgrab(ctx->mm);
|
||||
|
||||
userfaultfd_ctx_get(octx);
|
||||
fctx->orig = octx;
|
||||
|
|
|
|||
Loading…
Reference in a new issue