<div dir="ltr"><br><div class="gmail_extra">On 11 April 2016 at 22:24, Iurie <span dir="ltr"><<a href="mailto:iurcic@gmail.com" target="_blank">iurcic@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>From d6a5bbd910dc19d4863dbac8eba5bdf07bd1c3ab Mon Sep 17 00:00:00 2001</div><div>From: GreatMaster <<a href="mailto:iurcic@gmail.com" target="_blank">iurcic@gmail.com</a>></div></div></blockquote><div><br></div><div>Please put your real name and add signed-off stamp: <span><i>git config --global user</i>.name "FirstName LastName"<br></span></div><div><span>Then run : git commit --amend --reset-author --no-edit -s<br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Date: Mon, 11 Apr 2016 21:37:02 +0100</div><div>Subject: [PATCH] va: check null context in vlVaDestroyContext</div><div><br></div><div>---</div><div> src/gallium/state_trackers/va/context.c | 2 ++</div><div> 1 file changed, 2 insertions(+)</div><div><br></div><div>diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c</div><div>index b25c381..419b271 100644</div><div>--- a/src/gallium/state_trackers/va/context.c</div><div>+++ b/src/gallium/state_trackers/va/context.c</div><div>@@ -283,6 +283,8 @@ vlVaDestroyContext(VADriverContextP ctx, VAContextID context_id)</div><div> drv = VL_VA_DRIVER(ctx);</div><div> pipe_mutex_lock(drv->mutex);</div><div> context = handle_table_get(drv->htab, context_id);</div><div>+ if (!context)</div><div>+ return VA_STATUS_ERROR_INVALID_CONTEXT; </div></div></blockquote><div> </div><div>Change it to 3 spaces indentations and you need to unlock the mutex before returning.<br><br></div><div>When submitting new version, append -v2 to git format-patch -1 if git send-email still failed for you, or change subject to [PATCH v2]. </div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> </div><div> if (context->decoder) {</div><div> if (u_reduce_video_profile(context->decoder->profile) ==</div><span><font color="#888888"><div>-- </div><div>1.9.1</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br></div></div>