linux-uconsole/drivers/android
Marco Ballesio efe13e4fcd FROMGIT: 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.

Bug: 180989544
(cherry picked from commit 48f10b7ed0c23e2df7b2c752ad1d3559dad007f9
 git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing)
Signed-off-by: Marco Ballesio <balejs@google.com>
Signed-off-by: Li Li <dualli@google.com>
Test: built, booted, interrupted a worker thread within
Acked-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20210316011630.1121213-3-dualli@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ie6c7993cab699bc2c1a25a2f9d94b200a1156e5d
2021-03-24 14:53:24 +00:00
..
binder.c FROMGIT: binder: use EINTR for interrupted wait for work 2021-03-24 14:53:24 +00:00
binder_alloc.c UPSTREAM: binder: add flag to clear buffer on txn complete 2020-12-16 20:35:29 +00:00
binder_alloc.h UPSTREAM: binder: add flag to clear buffer on txn complete 2020-12-16 20:35:29 +00:00
binder_alloc_selftest.c binder: print warnings when detecting oneway spamming. 2020-09-03 18:24:41 +02:00
binder_internal.h BACKPORT: FROMGIT: binder: BINDER_FREEZE ioctl 2021-03-24 14:53:14 +00:00
binder_trace.h Linux 5.2-rc4 2019-06-09 09:18:13 +02:00
binderfs.c binderfs: make symbol 'binderfs_fs_parameters' static 2020-09-03 18:24:39 +02:00
debug_symbols.c ANDROID: android: Create debug_symbols driver 2021-01-27 15:23:18 -08:00
Kconfig ANDROID: android: Create debug_symbols driver 2021-01-27 15:23:18 -08:00
Makefile ANDROID: android: Create debug_symbols driver 2021-01-27 15:23:18 -08:00
vendor_hooks.c ANDROID: gpiolib: Add vendor hook for gpio read 2021-03-23 11:01:01 +00:00