This is a note to let you know that I've just added the patch titled binder: use EPOLLERR from eventpoll.h to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: binder-use-epollerr-from-eventpoll.h.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 6ac061db9c58ca5b9270b1b3940d2464fb3ff183 Mon Sep 17 00:00:00 2001 From: Carlos Llamas <cmllamas@xxxxxxxxxx> Date: Fri, 1 Dec 2023 17:21:30 +0000 Subject: binder: use EPOLLERR from eventpoll.h From: Carlos Llamas <cmllamas@xxxxxxxxxx> commit 6ac061db9c58ca5b9270b1b3940d2464fb3ff183 upstream. Use EPOLLERR instead of POLLERR to make sure it is cast to the correct __poll_t type. This fixes the following sparse issue: drivers/android/binder.c:5030:24: warning: incorrect type in return expression (different base types) drivers/android/binder.c:5030:24: expected restricted __poll_t drivers/android/binder.c:5030:24: got int Fixes: f88982679f54 ("binder: check for binder_thread allocation failure in binder_poll()") Cc: stable@xxxxxxxxxxxxxxx Cc: Eric Biggers <ebiggers@xxxxxxxxxx> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx> Signed-off-by: Carlos Llamas <cmllamas@xxxxxxxxxx> Link: https://lore.kernel.org/r/20231201172212.1813387-2-cmllamas@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -5173,7 +5173,7 @@ static __poll_t binder_poll(struct file thread = binder_get_thread(proc); if (!thread) - return POLLERR; + return EPOLLERR; binder_inner_proc_lock(thread->proc); thread->looper |= BINDER_LOOPER_STATE_POLL; Patches currently in stable-queue which might be from cmllamas@xxxxxxxxxx are queue-5.10/binder-use-epollerr-from-eventpoll.h.patch queue-5.10/binder-fix-trivial-typo-of-binder_free_buf_locked.patch queue-5.10/binder-fix-comment-on-binder_alloc_new_buf-return-value.patch