projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e3b5ce
)
drm/i915/selftests: Free the batch along the contexts error path
author
Chris Wilson
<
[email protected]
>
Wed, 19 Sep 2018 19:55:13 +0000
(20:55 +0100)
committer
Chris Wilson
<
[email protected]
>
Thu, 20 Sep 2018 09:43:29 +0000
(10:43 +0100)
Remember to release the batch bo reference if we hit an error trying to
submit our MI_STORE_DWORD_IMM.
References: https://bugs.freedesktop.org/show_bug.cgi?id=107979
Signed-off-by: Chris Wilson <
[email protected]
>
Reviewed-by: Mika Kuoppala <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/selftests/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_gem_context.c
b/drivers/gpu/drm/i915/selftests/i915_gem_context.c
index 1c92560d35da6553cea677aaec9d07ed11333a7e..07d700b7cb9440dbaa2e43e6825b71f6f99049bc 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_gem_context.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_gem_context.c
@@
-195,6
+195,7
@@
err_request:
i915_request_add(rq);
err_batch:
i915_vma_unpin(batch);
+ i915_vma_put(batch);
err_vma:
i915_vma_unpin(vma);
return err;