artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4098896
)
drm/i915/gem: add missing else
author
jsg
<jsg@openbsd.org>
Thu, 7 Jul 2022 23:28:58 +0000
(23:28 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 7 Jul 2022 23:28:58 +0000
(23:28 +0000)
From katrinzhou
a13ea254268c5538f4c2f1a1a344ad07cd7b87d3
in linux 5.15.y/5.15.53
9efdd519d001ee3e761f6ff80d5eb123387421c1
in mainline linux
sys/dev/pci/drm/i915/gem/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/gem/i915_gem_context.c
b/sys/dev/pci/drm/i915/gem/i915_gem_context.c
index
dc4398c
..
3e770a4
100644
(file)
--- a/
sys/dev/pci/drm/i915/gem/i915_gem_context.c
+++ b/
sys/dev/pci/drm/i915/gem/i915_gem_context.c
@@
-728,8
+728,9
@@
static int set_proto_ctx_param(struct drm_i915_file_private *fpriv,
case I915_CONTEXT_PARAM_PERSISTENCE:
if (args->size)
ret = -EINVAL;
- ret = proto_context_set_persistence(fpriv->dev_priv, pc,
- args->value);
+ else
+ ret = proto_context_set_persistence(fpriv->dev_priv, pc,
+ args->value);
break;
case I915_CONTEXT_PARAM_NO_ZEROMAP: