[PATCH libdrm 1/2] etnaviv: fix etna_bo_from_name

Christian Gmeiner christian.gmeiner at gmail.com
Sat Aug 5 12:05:50 UTC 2017


2017-08-04 17:28 GMT+02:00 Philipp Zabel <p.zabel at pengutronix.de>:
> Look up BOs from the name table using the name parameter instead of
> req.handle (which at this point is always zero).
>
> Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
> Reviewed-by: Eric Engestrom <eric at engestrom.ch>

Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>

> ---
> Sorry for the resend, this time to the correct list.
> ---
>  etnaviv/etnaviv_bo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/etnaviv/etnaviv_bo.c b/etnaviv/etnaviv_bo.c
> index 4ad0434e..4fe877f1 100644
> --- a/etnaviv/etnaviv_bo.c
> +++ b/etnaviv/etnaviv_bo.c
> @@ -173,7 +173,7 @@ struct etna_bo *etna_bo_from_name(struct etna_device *dev, uint32_t name)
>         pthread_mutex_lock(&table_lock);
>
>         /* check name table first, to see if bo is already open: */
> -       bo = lookup_bo(dev->name_table, req.handle);
> +       bo = lookup_bo(dev->name_table, name);
>         if (bo)
>                 goto out_unlock;
>
> --
> 2.11.0
>
> _______________________________________________
> etnaviv mailing list
> etnaviv at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv

greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info


More information about the etnaviv mailing list