From: Erico Nunes Date: Fri, 14 Jun 2019 10:28:55 +0000 (+0200) Subject: lima: fix dynarray usage in lima_submit_add_bo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ddea5e8c526334afa29641d4bdedce418f3b6d6;p=mesa.git lima: fix dynarray usage in lima_submit_add_bo Commit de8a919702a refactored dynarray usage and changed the size of the allocation in lima_submit_add_bo. That causes a segfault in programs running with lima. This commit restores the allocation size back to the previous size. Signed-off-by: Erico Nunes Reviewed-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/lima_submit.c b/src/gallium/drivers/lima/lima_submit.c index c54289d1470..3b5145f3bc4 100644 --- a/src/gallium/drivers/lima/lima_submit.c +++ b/src/gallium/drivers/lima/lima_submit.c @@ -110,7 +110,7 @@ bool lima_submit_add_bo(struct lima_submit *submit, struct lima_bo *bo, uint32_t submit_bo->handle = bo->handle; submit_bo->flags = flags; - struct lima_bo **jbo = util_dynarray_grow(&submit->bos, struct lima_bo, 1); + struct lima_bo **jbo = util_dynarray_grow(&submit->bos, struct lima_bo *, 1); *jbo = bo; /* prevent bo from being freed when submit start */