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

Commit 5a642e6b authored by Lucas Stach's avatar Lucas Stach
Browse files

etnaviv: fix submit error path



If the gpu submit fails, bail out to avoid accessing a potentially
unititalized fence.

CC: stable@vger.kernel.org #4.12+
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 569dbb88
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -445,7 +445,9 @@ int etnaviv_ioctl_gem_submit(struct drm_device *dev, void *data,
	cmdbuf->user_size = ALIGN(args->stream_size, 8);

	ret = etnaviv_gpu_submit(gpu, submit, cmdbuf);
	if (ret == 0)
	if (ret)
		goto out;

	cmdbuf = NULL;

	if (args->flags & ETNA_SUBMIT_FENCE_FD_OUT) {