drm: Fix return value of drm_framebuffer_init()
authorLukas Wunner <lukas@wunner.de>
Thu, 15 Oct 2015 09:56:56 +0000 (11:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Oct 2015 09:00:44 +0000 (11:00 +0200)
commit3c67d839b30c7d6d6ab5c6fddac0f58ec8095d50
tree54effbe9bc7d1d0e624f750ac0503c1da44298e0
parent6ff774bd472dcbe77df63ab8044cd9cf65535814
drm: Fix return value of drm_framebuffer_init()

In its original version, drm_framebuffer_init() returned a negative int
if drm_mode_object_get() failed (f453ba046074, "DRM: add mode setting
support").

This was accidentally disabled by commit 4b096ac10da0 ("drm: revamp
locking around fb creation/destruction"). Thus, drm_framebuffer_init()
pretends success if drm_mode_object_get() failed.

Reinstate the original behaviour. Also fix erroneous kernel-doc of
drm_mode_object_get().

Fixes: 4b096ac10da0 ("drm: revamp locking around fb creation/
    destruction")
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c