Revert "binder: fix max_thread type inconsistency"

This reverts commit e78531e8ca which is
commit 42316941335644a98335f209daafa4c122f28983 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Cc: Carlos Llamas <cmllamas@google.com>
Change-Id: Ice729771f03c033b7ffb9a0042c81089e8bb9b10
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2024-07-24 17:06:31 +00:00
parent e4ceb55393
commit c1eefaf65b
2 changed files with 2 additions and 2 deletions

View File

@@ -5630,7 +5630,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
goto err;
break;
case BINDER_SET_MAX_THREADS: {
u32 max_threads;
int max_threads;
if (copy_from_user(&max_threads, ubuf,
sizeof(max_threads))) {

View File

@@ -447,7 +447,7 @@ struct binder_proc {
struct list_head todo;
struct binder_stats stats;
struct list_head delivered_death;
u32 max_threads;
int max_threads;
int requested_threads;
int requested_threads_started;
int tmp_ref;