<div dir="ltr"><div>Thx for the review. I experienced the crash when testing patch 5/7 of this patch series, around "resource = pscreen->resource_from_handle" in the new vaCreateSurface2 function.<br></div>Julien<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 October 2015 at 16:59, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 17 October 2015 at 00:14, Julien Isorce <<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>> wrote:<br>
> Signed-off-by: Julien Isorce <<a href="mailto:j.isorce@samsung.com">j.isorce@samsung.com</a>><br>
> ---<br>
> src/gallium/drivers/nouveau/nvc0/nvc0_resource.c | 3 ++-<br>
> 1 file changed, 2 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c<br>
> index 12b5a02..15c803c 100644<br>
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c<br>
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c<br>
> @@ -26,7 +26,8 @@ nvc0_resource_from_handle(struct pipe_screen * screen,<br>
> } else {<br>
> struct pipe_resource *res = nv50_miptree_from_handle(screen,<br>
> templ, whandle);<br>
> - nv04_resource(res)->vtbl = &nvc0_miptree_vtbl;<br>
> + if (res)<br>
> + nv04_resource(res)->vtbl = &nvc0_miptree_vtbl;<br>
</span>Did you actually experience the crash or did you notice this while<br>
browsing through ?<br>
<br>
Either way - abeit unlikely we can return NULL, so let's avoid the crash.<br>
Cc: "11.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
Reviewed-by: Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>><br>
<br>
Thanks<br>
Emil<br>
g<br>
</blockquote></div><br></div>