diff options
author | Lepton Wu <lepton@chromium.org> | 2021-03-18 23:05:19 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-19 18:58:01 +0000 |
commit | c54fb6ef3d81b5c1e88c6d4ae2ea5d534cb18c8c (patch) | |
tree | 05e7d0567b7bb593490afbabeb011e5a8465a7ba /CleanSpec.mk | |
parent | bf549e4c881acb110f0a22a9df4cd1625750b4a7 (diff) |
virgl: Don't destroy resource while it's in use.
This is the race condition: thread 1 check reference count of resource
and then find out out it's zero and then it begin to destroy it. Around
the same time, thread 2 gets the lock and get the resource from the hash
table and plan to use it. Then this resource gets destroyed while it's
still in use.
Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9701>
Diffstat (limited to 'CleanSpec.mk')
0 files changed, 0 insertions, 0 deletions