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

Commit f105a7e3 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

Fix incorrect assumptions about ashmem_valid()



This test assumes that ashmem_valid() tests an fd to see if it refers
to /dev/ashmem*. This is not correct; ashmem_valid() tests an fd to
ensure that it is compatible with the API defined by libcutils, so it
will return true for any fd that references /dev/ashmem* or is a memfd.

Given that some of the tests explicitly expect memfds, use a more
rigorous function to check if a given fd is a memfd.

Bug: 433411899
Flag: EXEMPT bugfix
Change-Id: I33dd4058a79f30736f8cf2e879073f8c3e94894c
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
parent 3bca564b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment