[Mesa-dev] 0001-va-check-null-context-in-vlVaDestroyContext.patch

Julien Isorce julien.isorce at gmail.com
Tue Apr 12 10:04:26 UTC 2016


On 11 April 2016 at 22:24, Iurie <iurcic at gmail.com> wrote:

> From d6a5bbd910dc19d4863dbac8eba5bdf07bd1c3ab Mon Sep 17 00:00:00 2001
> From: GreatMaster <iurcic at gmail.com>
>

Please put your real name and add signed-off stamp: *git config --global
user*.name "FirstName LastName"
Then run : git commit --amend --reset-author --no-edit -s


> Date: Mon, 11 Apr 2016 21:37:02 +0100
> Subject: [PATCH] va: check null context in vlVaDestroyContext
>
> ---
>  src/gallium/state_trackers/va/context.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/state_trackers/va/context.c
> b/src/gallium/state_trackers/va/context.c
> index b25c381..419b271 100644
> --- a/src/gallium/state_trackers/va/context.c
> +++ b/src/gallium/state_trackers/va/context.c
> @@ -283,6 +283,8 @@ vlVaDestroyContext(VADriverContextP ctx, VAContextID
> context_id)
>     drv = VL_VA_DRIVER(ctx);
>     pipe_mutex_lock(drv->mutex);
>     context = handle_table_get(drv->htab, context_id);
> +    if (!context)
> +      return VA_STATUS_ERROR_INVALID_CONTEXT;
>

Change it to 3 spaces indentations and you need to unlock the mutex before
returning.

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].


>
>     if (context->decoder) {
>        if (u_reduce_video_profile(context->decoder->profile) ==
> --
> 1.9.1
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160412/5028bcfa/attachment.html>


More information about the mesa-dev mailing list