Files
linux/drivers/gpu/drm
Rob Clark c498e5d392 drm/msm: Fix submit error-path leaks
[ Upstream commit 68dc6c2d5e ]

For errors after msm_submitqueue_get(), we need to drop the submitqueue
reference.  Additionally after get_unused_fd() we need to drop the fd.
The ordering for dropping the queue lock and put_unused_fd() is not
important, so just move this all into out_post_unlock.

v2: Only drop queue ref if submit doesn't take it
v3: Fix unitialized submit ref in error path
v4: IS_ERR_OR_NULL()

Reported-by: pinkperfect2021@gmail.com
Fixes: f0de40a131 drm/msm: ("Reorder lock vs submit alloc")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/536073/
Link: https://lore.kernel.org/r/20230509203041.440619-1-robdclark@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:43 +01:00
..
2022-09-26 09:11:47 +02:00
2023-03-10 09:34:33 +01:00
2022-08-16 12:46:26 +02:00
2023-05-24 17:32:43 +01:00
2022-09-20 09:37:12 +02:00
2022-08-26 14:22:59 +02:00
2023-05-11 23:03:07 +09:00
2022-06-28 07:56:32 +02:00
2022-04-12 09:27:20 +03:00
2023-02-22 12:59:46 +01:00