commit | e29ccaac298d04ad4272af2d8b8d7a953c523e28 | [log] [tgz] |
---|---|---|
author | Francisco Jerez <currojerez@riseup.net> | Fri Aug 18 12:04:55 2017 -0700 |
committer | Francisco Jerez <currojerez@riseup.net> | Tue Aug 22 11:56:38 2017 -0700 |
tree | 2cdc443e5ef23aeac8775944b887c3be60c8f0cd | |
parent | 7ca124a6a3987fbfc09bc530761d44714c0da773 [diff] |
anv: Check that in_fence fd is valid before closing it. Probably harmless, but will overwrite errno with a failure status code. Reported by coverity. CID 1416600: Argument cannot be negative (NEGATIVE_RETURNS) Fixes: 5c4e4932e02 (anv: Implement support for exporting semaphores as FENCE_FD) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>