venus: fix a bug on buffer cache init failure path
authorYiwei Zhang <zzyiwei@chromium.org>
Sat, 21 May 2022 22:28:54 +0000 (22:28 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Jun 2022 19:00:36 +0000 (19:00 +0000)
commit01a0bfc3f994834318814328978eff05d27ac5a8
treec82ed5608a04c25173c186af8ff79a971d2032c9
parentb91511b9a895f1a8399c8f52712b2e50669c1f85
venus: fix a bug on buffer cache init failure path

The failure path was never hit though, and will not either.

Fixes: 65abd1d4aed ("venus: implement vn_buffer_cache_entries_create")

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16731>
src/virtio/vulkan/vn_buffer.c