ANDROID: ashmem_rust: return EINVAL on offset > size
When calling a pin ioctl with an offset greater than the size of the
ashmem region, an integer underflow occurs. To fix that, return EINVAL
in this scenario.
Bug: 427377651
Change-Id: Ia85732374c2fa4155bcb4c347184e4c1d2bca965
Signed-off-by:
Alice Ryhl <aliceryhl@google.com>
Loading
Please sign in to comment