diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 9270da81939b..7286cf9a726b 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -4574,10 +4574,8 @@ static unsigned int binder_poll(struct file *filp, bool wait_for_proc_work; thread = binder_get_thread(proc); - if (!thread) { - binder_unlock(__func__); + if (!thread) return POLLERR; - } binder_inner_proc_lock(thread->proc); thread->looper |= BINDER_LOOPER_STATE_POLL;