Skip to contentSkip to conversation

Revert "android: binder: Sanity check at binder ioctl"

PATCH Superseded Todd Kjos 1 participant 1 message Jul 5, 2017 Android drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Todd Kjos

author maintainer
#0 lore raw

PATCH 1/37 Revert "android: binder: Sanity check at binder ioctl"

This reverts commit a906d6931f3ccaf7de805643190765ddd7378e27.

---
 drivers/android/binder.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/android/binder.c +0 -5
index aae4d8d4be36..157bd3e49ff4 100644
@@ -3247,10 +3247,6 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 	/*pr_info("binder_ioctl: %d:%d %x %lx\n",
 			proc->pid, current->pid, cmd, arg);*/
 
-	if (unlikely(current->mm != proc->vma_vm_mm)) {
-		pr_err("current mm mismatch proc mm\n");
-		return -EINVAL;
-	}
 	trace_binder_ioctl(cmd, arg);
 
 	ret = wait_event_interruptible(binder_user_error_wait, binder_stop_on_user_error < 2);
@@ -3466,7 +3462,6 @@ static int binder_open(struct inode *nodp, struct file *filp)
 		return -ENOMEM;
 	get_task_struct(current);
 	proc->tsk = current;
-	proc->vma_vm_mm = current->mm;
 	INIT_LIST_HEAD(&proc->todo);
 	init_waitqueue_head(&proc->wait);
 	proc->default_priority = task_nice(current);
Signature · 1 line
2.13.2.725.g09c95d1e9-goog