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:
7b4dc3c
)
drm/i915: Fix an error handling in 'intel_framebuffer_init()'
author
Christophe JAILLET
<
[email protected]
>
Sun, 10 Sep 2017 08:56:42 +0000
(10:56 +0200)
committer
Rodrigo Vivi
<
[email protected]
>
Mon, 18 Sep 2017 22:22:20 +0000
(15:22 -0700)
We should go through the error handling path to decrease the
'framebuffer_references' as done everywhere else in this function.
Fixes: 2e2adb05736c ("drm/i915: Add render decompression support")
Signed-off-by: Christophe JAILLET <
[email protected]
>
Signed-off-by: Jani Nikula <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
(cherry picked from commit
37875d6b3af702425ce292de81b77faf94766616
)
Signed-off-by: Rodrigo Vivi <
[email protected]
>
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index f17275519484bd8f598401269959c038fe139171..00cd17c76fdcc3bc5427f53bf45e416d66400655 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-14030,7
+14030,7
@@
static int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
if (mode_cmd->handles[i] != mode_cmd->handles[0]) {
DRM_DEBUG_KMS("bad plane %d handle\n", i);
-
return -EINVAL
;
+
goto err
;
}
stride_alignment = intel_fb_stride_alignment(fb, i);