Skip to content
Snippets Groups Projects

va_surface: fix potential double use of a buffer

Merged Steve Lhomme requested to merge robUx4/vlc:va-surface-race into master

Substracting 1 to refcount first, means it goes back to unused state temporarily. It may be picked by another thread as well before calling atomic_fetch_sub().

In the end we don't need the -1,+1 it's already in the "used once" state (2) after the atomic_compare_exchange() call.

Merge request reports

Merge request pipeline #220156 passed

Merge request pipeline passed for 35886895

Approved by

Merged by Felix Paul KühneFelix Paul Kühne 2 years ago (May 12, 2022 12:56pm UTC)

Merge details

  • Changes merged into master with 35886895.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #220160 passed

Pipeline passed for 35886895 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading