diff --git a/drivers/android/binder.c b/drivers/android/binder.c index a54787f57eb3..43fb1c0c9034 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -5944,9 +5944,9 @@ static int binder_open(struct inode *nodp, struct file *filp) current->group_leader->pid, current->pid); eproc = kzalloc(sizeof(*eproc), GFP_KERNEL); - proc = &eproc->proc; - if (proc == NULL) + if (eproc == NULL) return -ENOMEM; + proc = &eproc->proc; spin_lock_init(&proc->inner_lock); spin_lock_init(&proc->outer_lock); get_task_struct(current->group_leader);