<div dir="ltr"><div>Reviewed-by: Julien Isorce <<a href="mailto:j.isorce@samsung.com">j.isorce@samsung.com</a>><br><br></div><div>I'll push it shortly. Thx<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 12 April 2016 at 23:24, Iurie Salomov <span dir="ltr"><<a href="mailto:iurcic@gmail.com" target="_blank">iurcic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: iurie salomov <<a href="mailto:iurcic@gmail.com">iurcic@gmail.com</a>><br>
<br>
Signed-off-by: Iurie Salomov<br>
---<br>
src/gallium/state_trackers/va/context.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c<br>
index b25c381..932717d 100644<br>
--- a/src/gallium/state_trackers/va/context.c<br>
+++ b/src/gallium/state_trackers/va/context.c<br>
@@ -283,6 +283,10 @@ vlVaDestroyContext(VADriverContextP ctx, VAContextID context_id)<br>
drv = VL_VA_DRIVER(ctx);<br>
pipe_mutex_lock(drv->mutex);<br>
context = handle_table_get(drv->htab, context_id);<br>
+ if (!context) {<br>
+ pipe_mutex_unlock(drv->mutex);<br>
+ return VA_STATUS_ERROR_INVALID_CONTEXT;<br>
+ }<br>
<br>
if (context->decoder) {<br>
if (u_reduce_video_profile(context->decoder->profile) ==<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
</font></span></blockquote></div><br></div></div></div></div>