commit | 0ad73031ec2f9dee6d3ad20dd625b0134ea8ec8b | [log] [tgz] |
---|---|---|
author | Grazvydas Ignotas <notasas@gmail.com> | Mon Jan 15 23:59:20 2018 +0200 |
committer | Grazvydas Ignotas <notasas@gmail.com> | Wed Jan 17 00:39:55 2018 +0200 |
tree | dec750458da9b93f2397750becdcc4900448a11c | |
parent | cce982a70be5e24c6f6ee222c17c47eb8cba6921 [diff] |
st/va: release held locks in error paths Found with the help of following Coccinelle semantic patch: // <smpl> @@ expression E; @@ \(pthread_mutex_lock\|mtx_lock\|simple_mtx_lock\)(E) ... ( \(pthread_mutex_unlock\|mtx_unlock\|simple_mtx_unlock\)(E); ... return ...; | + maybe need_unlock(E); return ...; ) // </smpl> Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: mesa-stable@lists.freedesktop.org