Commit b2f4b03f authored by xueminsu's avatar xueminsu Committed by Alex Deucher

radeon_display: Use pointer return error codes

drm_mode_addfb() expects fb_create return error code
instead of NULL.
Signed-off-by: default avatarxueminsu <xuemin.su@intel.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent e521a290
......@@ -1122,7 +1122,7 @@ radeon_user_framebuffer_create(struct drm_device *dev,
if (ret) {
kfree(radeon_fb);
drm_gem_object_unreference_unlocked(obj);
return NULL;
return ERR_PTR(ret);
}
return &radeon_fb->base;
......
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