[Mesa-stable] [Mesa-dev] [PATCH 1/2] st/va: release held locks in error paths
Emil Velikov
emil.l.velikov at gmail.com
Tue Jan 16 18:35:40 UTC 2018
On 15 January 2018 at 22:03, Grazvydas Ignotas <notasas at gmail.com> wrote:
> 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 at gmail.com>
Grazvydas please add the stable tag, if you haven't pushed the patch.
Thinking out loud: Should have these the Coccinelle bits in-tree. This
way we can check and address such issues quicker ;-)
-Emil
More information about the mesa-stable
mailing list