summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_display.c
diff options
context:
space:
mode:
authorxueminsu <xuemin.su@intel.com>2013-01-22 15:16:53 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-01-23 19:51:44 +0100
commitb2f4b03f8a378cd626d2ea67d19e7470c050a098 (patch)
treef3b5ec01a06a515a5a4403b667c513b8a7b21423 /drivers/gpu/drm/radeon/radeon_display.c
parentdrm/radeon: fix cursor corruption on DCE6 and newer (diff)
downloadlinux-b2f4b03f8a378cd626d2ea67d19e7470c050a098.tar.xz
linux-b2f4b03f8a378cd626d2ea67d19e7470c050a098.zip
radeon_display: Use pointer return error codes
drm_mode_addfb() expects fb_create return error code instead of NULL. Signed-off-by: xueminsu <xuemin.su@intel.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 1da2386d7cf7..ff3def784619 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -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;