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 <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
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 */