Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37875d6b authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jani Nikula
Browse files

drm/i915: Fix an error handling in 'intel_framebuffer_init()'



We should go through the error handling path to decrease the
'framebuffer_references' as done everywhere else in this function.

Fixes: 2e2adb05 ("drm/i915: Add render decompression support")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170910085642.13673-1-christophe.jaillet@wanadoo.fr
parent 14826673
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14105,7 +14105,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);