Skip to content

backends/drm: Fix accessing a dangling reference

Vlad Zahorodnii requested to merge work/zzag/backend-drm-dangling-reference into master

m_commits.front() is a reference to the first item in the m_commits list. If it's submitted sucessfully, everything will be alright.

If the candidate commit fails, it can be merged with other pending commits in the m_commits list. It will also invalidate any previously taken reference to the first item in the m_commits list, which is not okay for commit->test().

Edited by Vlad Zahorodnii

Merge request reports

Loading