Commit 3c8ec4c5 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Kamal Mostafa

drm: atomic helper: do not unreference error pointer

BugLink: http://bugs.launchpad.net/bugs/1599109

562c5b4d didn't quite fix the issue of dealing with an error
pointer. We can't free/unref an error pointer so reset it to NULL.

Many thanks to Dan Carpenter for pointing this out again.
Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: dri-devel@lists.freedesktop.org
Fixes: 562c5b4d ("drm: fix blob pointer check")
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1457698646-22231-1-git-send-email-lionel.g.landwerlin@intel.com
(cherry picked from commit c1f415c9)
Signed-off-by: default avatarTimo Aaltonen <timo.aaltonen@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 6df94a81
...@@ -2825,6 +2825,7 @@ void drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, ...@@ -2825,6 +2825,7 @@ void drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc,
NULL); NULL);
if (IS_ERR(blob)) { if (IS_ERR(blob)) {
ret = PTR_ERR(blob); ret = PTR_ERR(blob);
blob = NULL;
goto fail; goto fail;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment