diff options
| author | Carlos Llamas <cmllamas@google.com> | 2026-01-27 23:55:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-03 12:59:07 +0100 |
| commit | ec4ddc90d201d09ef4e4bef8a2c6d9624525ad68 (patch) | |
| tree | caf8ec6f116e8c9e2d36738a3136983008e67ac9 /include/uapi/linux | |
| parent | d6ba734814266bbf7ee01f9030436597116805f3 (diff) | |
binderfs: fix ida_alloc_max() upper bound
The 'max' argument of ida_alloc_max() takes the maximum valid ID and not
the "count". Using an ID of BINDERFS_MAX_MINOR (1 << 20) for dev->minor
would exceed the limits of minor numbers (20-bits). Fix this off-by-one
error by subtracting 1 from the 'max'.
Cc: stable@vger.kernel.org
Fixes: 3ad20fe393b3 ("binder: implement binderfs")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://patch.msgid.link/20260127235545.2307876-2-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
