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

Skip to content
Commit 19ea687d authored by Liam Mark's avatar Liam Mark Committed by Bruno Martins
Browse files

libion: save errno value

Ensure that the errno value is saved in ion_ioctl before calling ALOGE
in case ALOGE changes the errno which then changes the return value of
ion_ioctl.

Returning the wrong errno from ion_ioctl can be bad because it can cause
functions like ion_is_legacy to not behave properly.

Also apply the same fix to ion_map.

Change-Id: Ib994b465bfaccdf20963cfdc3f67d1cc5ff3cf8e
parent 531ddd76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment