]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Add missed unlocks in setcmap_legacy()
authorChuhong Yuan <hslester96@gmail.com>
Thu, 3 Dec 2020 14:42:48 +0000 (22:42 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Dec 2020 15:25:37 +0000 (16:25 +0100)
commit5219d1ef569746dd7957be276af947083a0aa9f4
tree09ce913c457d77baf37834879d34dc9dd6cf3d0b
parent8d0a9494da58cfa0ba3c721d2734ed38d24d1628
drm/fb-helper: Add missed unlocks in setcmap_legacy()

setcmap_legacy() does not call drm_modeset_unlock_all() in some exits,
add the missed unlocks with goto to fix it.

Fixes: 6ee04e05ce42 ("drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201203144248.418281-1-hslester96@gmail.com
drivers/gpu/drm/drm_fb_helper.c