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

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: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christian Brauner and committed by
Greg Kroah-Hartman
7d017406 6fc23b6e

+2 -2
+2 -2
include/uapi/linux/android/binderfs.h
··· 22 22 */ 23 23 struct binderfs_device { 24 24 char name[BINDERFS_MAX_NAME + 1]; 25 - __u8 major; 26 - __u8 minor; 25 + __u32 major; 26 + __u32 minor; 27 27 }; 28 28 29 29 /**