Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3378ce51 authored by Todd Kjos's avatar Todd Kjos Committed by Greg Kroah-Hartman
Browse files

ANDROID: fix binder change in merge of 4.9.188



The 4.9.188 merge was missing the change to the
binder driver associated with the linux-4.9.y
commit 16903f1a ("coredump: fix race condition
between mmget_not_zero()/get_task_mm() and core dumping").
It was left out because the android-4.9 binder
driver has been significantly refactored compared
to linux-4.9.y.

This patch applies the missing change from that
patch to the binder driver.

Change-Id: I803e558cb629fedff04b14e23ac9f83e98628ede
Fixes: d4fff2d0a879 ("Merge 4.9.188 into android-4.9")
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 94c1fcc8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -219,6 +219,11 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate,

	if (mm) {
		down_read(&mm->mmap_sem);
		if (!mmget_still_valid(mm)) {
			if (allocate == 0)
				goto free_range;
			goto err_no_vma;
		}
		vma = alloc->vma;
	}