Commit 75574205 authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin
Browse files

sync: Fix error paths



Check the return value of get_unused_fd to make sure a valid
file descriptor is returned.

Make sure to call put_unused_fd even if an error occurs before
the fd can be used.

Change-Id: I0fe8f78d9e30ecfc4d271c5d875424543dae2d0f
Signed-off-by: default avatarRebecca Schultz Zavin <rebecca@android.com>
parent 944b1ea9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment