Patch "etnaviv: fix submit error path" has been added to the 4.13-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
etnaviv: fix submit error path
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
etnaviv-fix-submit-error-path.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
5a642e6bc49f59922e19ebd639e74f72753fc77bMon Sep 17 00:00:00 2001
From: Lucas Stach <[email protected]>
Date: Fri, 8 Sep 2017 16:24:32 +0200
Subject: etnaviv: fix submit error path
From: Lucas Stach <[email protected]>
commit 5a642e6bc49f59922e19ebd639e74f72753fc77b upstream.
If the gpu submit fails, bail out to avoid accessing a potentially unititalized fence.
--- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +4 -2
@@ -445,8 +445,10 @@ int etnaviv_ioctl_gem_submit(struct drm_ cmdbuf->user_size =ALIGN (args->stream_size,8 ); ret =etnaviv_gpu_submit (gpu, submit, cmdbuf); -if (ret ==0 ) - cmdbuf =NULL ; +if (ret) + goto out; + + cmdbuf =NULL ;if (args->flags &ETNA_SUBMIT_FENCE_FD_OUT ) {/*
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/etnaviv-fix-gem-object-list-corruption.patch queue-4.13/etnaviv-fix-submit-error-path.patch