Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

binder: fix the missing BR_FROZEN_REPLY in binder_return_strings

Add BR_FROZEN_REPLY in binder_return_strings to support stat function.

Fixes: ae28c1be1e54 ("binder: BINDER_GET_FROZEN_INFO ioctl")
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Hang Lu <hangl@codeaurora.org>
Link: https://lore.kernel.org/r/1617961246-4502-2-git-send-email-hangl@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hang Lu and committed by
Greg Kroah-Hartman
00516915 b195b20b

+3 -2
+2 -1
drivers/android/binder.c
··· 5559 5559 "BR_FINISHED", 5560 5560 "BR_DEAD_BINDER", 5561 5561 "BR_CLEAR_DEATH_NOTIFICATION_DONE", 5562 - "BR_FAILED_REPLY" 5562 + "BR_FAILED_REPLY", 5563 + "BR_FROZEN_REPLY", 5563 5564 }; 5564 5565 5565 5566 static const char * const binder_command_strings[] = {
+1 -1
drivers/android/binder_internal.h
··· 155 155 }; 156 156 157 157 struct binder_stats { 158 - atomic_t br[_IOC_NR(BR_FAILED_REPLY) + 1]; 158 + atomic_t br[_IOC_NR(BR_FROZEN_REPLY) + 1]; 159 159 atomic_t bc[_IOC_NR(BC_REPLY_SG) + 1]; 160 160 atomic_t obj_created[BINDER_STAT_COUNT]; 161 161 atomic_t obj_deleted[BINDER_STAT_COUNT];