]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/v3d: Ensure job pointer is set to NULL after job completion
authorMaíra Canal <mcanal@igalia.com>
Mon, 13 Jan 2025 15:47:40 +0000 (12:47 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:15:59 +0000 (17:15 +0100)
commit14e0a874488e79086340ba8e2d238cb9596b68a8
tree68f56421dd632fb494ba84b6aedf82bc283d2285
parent83775c9a9a65247929fc0829bef7b27e49aa008a
drm/v3d: Ensure job pointer is set to NULL after job completion

[ Upstream commit e4b5ccd392b92300a2b341705cc4805681094e49 ]

After a job completes, the corresponding pointer in the device must
be set to NULL. Failing to do so triggers a warning when unloading
the driver, as it appears the job is still active. To prevent this,
assign the job pointer to NULL after completing the job, indicating
the job has finished.

Fixes: 14d1d1908696 ("drm/v3d: Remove the bad signaled() implementation.")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250113154741.67520-1-mcanal@igalia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/v3d/v3d_irq.c