OSDN Git Service

ANDROID: binder: call poll_wait() unconditionally.
authorMartijn Coenen <maco@android.com>
Thu, 10 Aug 2017 10:32:00 +0000 (12:32 +0200)
committerMartijn Coenen <maco@android.com>
Fri, 11 Aug 2017 08:19:00 +0000 (10:19 +0200)
commit4d666b500c2de3edc65e2ab5d5fe36780c230604
treea7e1fabce154f327c14374ac310f675a2df8ab44
parentb1c79e32b7a8b42487f4f4fe970e5bc7d5dd48a9
ANDROID: binder: call poll_wait() unconditionally.

Because we're not guaranteed that subsequent calls
to poll() will have a poll_table_struct parameter
with _qproc set. When _qproc is not set, poll_wait()
is a noop, and we won't be woken up correctly.

Bug: 64552728
Change-Id: I5b904c9886b6b0994d1631a636f5c5e5f6327950
Test: binderLibTest stops hanging with new test
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/android/binder.c