binder: fix pointer cast warning
binder_uintptr_t is not the same as uintptr_t, so converting it into a
pointer requires a second cast:
drivers/android/binder.c: In function 'binder_translate_fd_array':
drivers/android/binder.c:2511:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
2511 | sender_ufda_base = (void __user *)sender_uparent->buffer + fda->parent_offset;
| ^
Fixes: 656e01f3 ("binder: read pre-translated fds from sender buffer")
Acked-by:
Todd Kjos <tkjos@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Acked-by:
Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211207122448.1185769-1-arnd@kernel.org
Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
-
mentioned in commit c8adc3f8
-
mentioned in commit 9d1efccf
-
mentioned in commit 4a383b82
-
mentioned in commit ff4f9827
-
mentioned in commit b9fbafb9
-
mentioned in commit c1c399fc
-
mentioned in commit 1345c86f
-
mentioned in commit 115a0a1e
-
mentioned in commit 5ee60074
-
mentioned in commit 7a9ea5e9
-
mentioned in commit eb702f57
-
mentioned in commit 0019bfc3
-
mentioned in commit a01460a6
-
mentioned in commit 3dda6c62
-
mentioned in commit 4de98dfd
-
mentioned in commit 2f59b1fd
-
mentioned in commit 6bb74bff
-
mentioned in commit adc5f808
-
mentioned in commit 1e6351e1
Please sign in to comment