v3dv: Initialize time before usage by free_stale_bos.
authorVinson Lee <vlee@freedesktop.org>
Wed, 14 Oct 2020 23:55:12 +0000 (16:55 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 16 Oct 2020 22:34:22 +0000 (22:34 +0000)
commit7d1fb5fffe346dacda896f9feaa7df4695a1d543
tree24f6009efc7237ce499e430ae0bf489f13880bc8
parent8eb246d7f6137c6d1783c187d37e415e61211d2d
v3dv: Initialize time before usage by free_stale_bos.

Fix defect reported by Coverity Scan.

Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value time.tv_sec when calling free_stale_bos.

Fixes: f78c99f357ee ("v3dv/bo: add a maximum size for the bo_cache and a envvar to configure it")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7154>
src/broadcom/vulkan/v3dv_bo.c