Re: [Mesa-dev] [PATCH] st/dri: always initialize 'opencl_func_mutex' in struct dri_screen
Reviewed-by: Marek OlšákMarek On Thu, Jul 6, 2017 at 10:28 PM, Aleksander Morgado wrote: > The 'opencl_func_mutex' is destroyed in dri_destroy_screen_helper() > unconditionally, so make sure it is always initialized to avoid any > undefined
[Mesa-dev] [PATCH] st/dri: always initialize 'opencl_func_mutex' in struct dri_screen
The 'opencl_func_mutex' is destroyed in dri_destroy_screen_helper() unconditionally, so make sure it is always initialized to avoid any undefined behaviour. Signed-off-by: Aleksander Morgado--- src/gallium/state_trackers/dri/dri2.c | 1 +