commit | 3d7636603977ba97a573858d7dbce53d232b05c4 | [log] [tgz] |
---|---|---|
author | Rebecca Schultz Zavin <rebecca@android.com> | Wed Aug 08 13:46:22 2012 -0700 |
committer | Michael Bohan <mbohan@codeaurora.org> | Fri Jan 11 15:05:34 2013 -0800 |
tree | 01ce058ec181dd0156c5f21691544faf17f2418b | |
parent | 8c9daff58d058809bf54714ad838c0e23ac62e8a [diff] |
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: Rebecca Schultz Zavin <rebecca@android.com> Signed-off-by: Michael Bohan <mbohan@codeaurora.org>