commit | 93b8cdfe8bfb87335afc34458dcf1031b934f51a | [log] [tgz] |
---|---|---|
author | Vinson Lee <vlee@freedesktop.org> | Mon Sep 07 18:34:46 2020 -0700 |
committer | Vinson Lee <vlee@freedesktop.org> | Mon Sep 28 15:34:01 2020 -0700 |
tree | 28f8071321b0c0c63a746615802ad1066694f807 | |
parent | 1d71b1a311239ecbc2dbdd241abcf64a7345dc41 [diff] |
anv: Check file descriptor before closing. Fix defect reported by Coverity Scan. Argument cannot be negative (NEGATIVE_RETURNS) negative_returns: fd is passed to a parameter that cannot be negative Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Marcin Ĺšlusarz <marcin.slusarz@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6643>