projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ffc50
)
radeon_display: Use pointer return error codes
author
xueminsu
<xuemin.su@intel.com>
Tue, 22 Jan 2013 14:16:53 +0000
(22:16 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:24:40 +0000
(18:24 -0600)
commit
b2f4b03f8a378cd626d2ea67d19e7470c050a098
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_display.c
b/drivers/gpu/drm/radeon/radeon_display.c
index 173b97b2819b83afd017cf531bfce59a601464ea..1f50727d210edefde1f85f71c986f5455f0b2552 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_display.c
+++ b/
drivers/gpu/drm/radeon/radeon_display.c
@@
-1136,7
+1136,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;