summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-18 17:21:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-18 17:21:37 +0200
commit51c70261b2575962cb9406cd92246b1cee6a3c71 (patch)
tree92cafe999dfc8852949bbed04203d503dc3552cc
parent83cf8df2d4fa48a80b384fea4b09b12180a2442e (diff)
downloadlinux-51c70261b2575962cb9406cd92246b1cee6a3c71.tar.gz
linux-51c70261b2575962cb9406cd92246b1cee6a3c71.tar.bz2
linux-51c70261b2575962cb9406cd92246b1cee6a3c71.zip
Revert "android: binder: fix dangling pointer comparison"
This reverts commit 7b142d8fd0bd4c9bf06ccb72ac4daedb503f0124. It doesn't seem to be correct, no one seems to have tested it, and the email address of the submitter now bounces :( So revert it. Cc: Jann Horn <jannh@google.com> Cc: Chen Feng <puck.chen@hisilicon.com> Cc: stable <stable@vger.kernel.org> Cc: Arve Hjønnevåg <arve@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/android/binder.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 09fdb425e2f5..16288e777ec3 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2962,7 +2962,6 @@ static int binder_open(struct inode *nodp, struct file *filp)
return -ENOMEM;
get_task_struct(current);
proc->tsk = current;
- atomic_inc(&current->mm->mm_count);
proc->vma_vm_mm = current->mm;
INIT_LIST_HEAD(&proc->todo);
init_waitqueue_head(&proc->wait);
@@ -3168,7 +3167,6 @@ static void binder_deferred_release(struct binder_proc *proc)
vfree(proc->buffer);
}
- mmdrop(proc->vma_vm_mm);
put_task_struct(proc->tsk);
binder_debug(BINDER_DEBUG_OPEN_CLOSE,