On 15 January 2018 at 22:03, Grazvydas Ignotas <nota...@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 <nota...@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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to