util/disk_cache: check for write() failure in the zstd path
authorEric Engestrom <eric@engestrom.ch>
Sun, 2 Feb 2020 17:15:09 +0000 (17:15 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Feb 2020 01:09:04 +0000 (01:09 +0000)
commit2799676218249c5b9f1dc0a6367e459a1ad5642e
tree32804d8779b8d7311488d3d25f250b2b9cd064fb
parent6321e3fb9fd9cc9d817071d435c6b8a59869b8bc
util/disk_cache: check for write() failure in the zstd path

CoverityID: 1458074
Fixes: a8d941091f72923561a6 ("util: Use ZSTD for shader cache if possible")
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3672>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3672>
src/util/disk_cache.c