Skip to content
Snippets Groups Projects
Commit 95c16f9d authored by Marco Ballesio's avatar Marco Ballesio Committed by Greg Kroah-Hartman
Browse files

binder: use EINTR for interrupted wait for work


when interrupted by a signal, binder_wait_for_work currently returns
-ERESTARTSYS. This error code isn't propagated to user space, but a way
to handle interruption due to signals must be provided to code using
this API.

Replace this instance of -ERESTARTSYS with -EINTR, which is propagated
to user space.

binder_wait_for_work

Signed-off-by: default avatarMarco Ballesio <balejs@google.com>
Signed-off-by: default avatarLi Li <dualli@google.com>
Test: built, booted, interrupted a worker thread within
Acked-by: default avatarTodd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20210316011630.1121213-3-dualli@chromium.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 432ff1e9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment