]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/v3d: fix missing unlock
authorYongzhi Liu <lyz_cs@pku.edu.cn>
Fri, 28 Jan 2022 13:41:02 +0000 (05:41 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:36 +0000 (14:40 +0200)
commitd22f4f803d5d98a784c015ed458ec7090d459206
tree6f4f0d0d1b14adfdc1d7f244ccc9057571385b81
parent8c0769ef0c47e1dee0224c62537c92f208ea765a
drm/v3d: fix missing unlock

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit e57c1a3bd5e8e0c7181f65ae55581f0236a8f284 ]

[why]
Unlock is needed on the error handling path to prevent dead lock.
v3d_submit_cl_ioctl and v3d_submit_csd_ioctl is missing unlock.

[how]
Fix this by changing goto target on the error handling path. So
changing the goto to target an error handling path
that includes drm_gem_unlock reservations.

Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1643377262-109975-1-git-send-email-lyz_cs@pku.edu.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit a0f8220ce93453f31af01dcdb4bd638772b60cc0)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/v3d/v3d_gem.c