Skip to content

freedreno: Fix file descriptor leak.

Vinson Lee requested to merge vlee/mesa:fix-cid-1466527 into master

Fix defects reported by Coverity Scan.

Resource leak (RESOURCE_LEAK) leaked_handle: Handle variable fd going out of scope leaks the handle.

Argument cannot be negative (NEGATIVE_RETURNS) negative_returns: fd is passed to a parameter that cannot be negative.

Fixes: 1ea4ef0d ("freedreno: slurp in decode tools") Signed-off-by: Vinson Lee vlee@freedesktop.org

cc: @robclark

Merge request reports