Unverified Commit 5c282702 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!5339 binder: fix race between mmput() and do_exit()

parents 0086af96 7c59c29b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
	}
	if (mm) {
		mmap_write_unlock(mm);
		mmput(mm);
		mmput_async(mm);
	}
	return 0;

@@ -304,7 +304,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,
err_no_vma:
	if (mm) {
		mmap_write_unlock(mm);
		mmput(mm);
		mmput_async(mm);
	}
	return vma ? -ENOMEM : -ESRCH;
}