freedreno: Check file descriptor before write.
Fix defect reported by Coverity Scan.
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