Commit 111ae13c authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin Committed by Iliyan Malchev
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 5fd9c3d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment