mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
etnaviv: fix submit error path
If the gpu submit fails, bail out to avoid accessing a potentially unititalized fence. CC: [email protected] #4.12+ Signed-off-by: Lucas Stach <[email protected]>
This commit is contained in:
parent
569dbb88e8
commit
5a642e6bc4
1 changed files with 4 additions and 2 deletions
|
|
@ -445,8 +445,10 @@ 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)
|
||||
cmdbuf = NULL;
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
cmdbuf = NULL;
|
||||
|
||||
if (args->flags & ETNA_SUBMIT_FENCE_FD_OUT) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue