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

Skip to content
Commit 54cdb1f0 authored by Leena Winterrowd's avatar Leena Winterrowd Committed by Steve Kondik
Browse files

libmedia: Preserve futex return status in client obtainBuffer

clock_gettime() can change errno if something goes wrong (most
commonly setting EBADF). This failure should not cause a failure
in ClientProxy::obtainBuffer() if the futex returned successfully
or with a known status. Preserve errno before calling clock_gettime
to prevent propagation of an invalid, unexpected error.

Propagated from Ib69201031a81395ece47dd8ad7c4dcddd2b00153

Change-Id: I48320fc287b6a0ef2a1b9e71f9d0e979bd6343a5
parent 5a1e2786
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