mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
drm: Fix return value of drm_framebuffer_init()
commit3c67d839b3upstream. In its original version, drm_framebuffer_init() returned a negative int if drm_mode_object_get() failed (f453ba0460, "DRM: add mode setting support"). This was accidentally disabled by commit4b096ac10d("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:4b096ac10d("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> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
ef5a14ba94
commit
4c632181fe
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue