Skip to content
Commit 879d7c02 authored by Rob Clark's avatar Rob Clark
Browse files

freedreno: fix use-after-free with stateobj rb's



We could be dropping last reference in ->flush(), so clear the entry in
the parent rb's table to avoid deref'ing after free'd.

Also, ring_bo_del()'s use of ring_cache expects that it is dropping the
last reference.  So drop our ref to the stateobj's ring_bo first.

Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
parent a43940eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment