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)
commit0a260e731d6c4c17547ac275a2cde888a9eb4a3d
tree09ce913c457d77baf37834879d34dc9dd6cf3d0b
parent15ccc39b3aab667c6fa131206f01f31bfbccdf6a
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: 964c60063bff ("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