dect
/
linux-2.6
Archived
13
0
Fork 0

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
This commit is contained in:
xueminsu 2013-01-22 22:16:53 +08:00 committed by Alex Deucher
parent e521a29014
commit b2f4b03f8a
1 changed files with 1 additions and 1 deletions

View File

@ -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;