Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4a4381b authored by Lucas Stach's avatar Lucas Stach
Browse files

drm/etnaviv: fix submit flags getting overwritten by BO content



The addition of the flags member to etnaviv_gem_submit structure didn't
take into account that the last member of this structure is a variable
length array.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 657314b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -106,9 +106,10 @@ struct etnaviv_gem_submit {
	struct etnaviv_gpu *gpu;
	struct ww_acquire_ctx ticket;
	struct dma_fence *fence;
	u32 flags;
	unsigned int nr_bos;
	struct etnaviv_gem_submit_bo bos[0];
	u32 flags;
	/* No new members here, the previous one is variable-length! */
};

int etnaviv_gem_wait_bo(struct etnaviv_gpu *gpu, struct drm_gem_object *obj,