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

sw_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: Ibbf55caebc2f8ee6a03f298eb0ae0189c7d10b5c
Signed-off-by: default avatarRebecca Schultz Zavin <rebecca@android.com>
parent 75574205
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment