Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b155e044 authored by Christian Brauner's avatar Christian Brauner Committed by Carlos Llamas
Browse files

UPSTREAM: binderfs: use __u32 for device numbers



We allow more then 255 binderfs binder devices to be created since there
are workloads that require more than that. If we use __u8 we'll overflow
after 255. So let's use a __u32.
Note that there's no released kernel with binderfs out there so this is
not a regression.

Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7d0174065f4903fb0ce0bab3d5047284faa7226d)
Bug: 228263403
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Change-Id: If143c0d6511946fac6349c5db7c013535950de4a
parent 22fdca53
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@
 */
struct binderfs_device {
	char name[BINDERFS_MAX_NAME + 1];
	__u8 major;
	__u8 minor;
	__u32 major;
	__u32 minor;
};

/**