st/nine: Fix reading invalid pointer
authorAxel Davy <davyaxel0@gmail.com>
Sun, 28 Mar 2021 16:30:40 +0000 (18:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 08:33:13 +0000 (08:33 +0000)
commit68024fc0cc6d05c5a7b59e49bda64fc157757506
tree91be08a5ea92183d5d44cfcd70dea728c3c455b0
parent2146494d08d7355a7acde352c0f6eebae09f47c3
st/nine: Fix reading invalid pointer

Apparently it is incorrect to use the pointer in
LIST_FOR_EACH_ENTRY like I used to.
Found with asan.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
src/gallium/frontends/nine/nine_memory_helper.c