]> www.infradead.org Git - users/hch/misc.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)
committerMaíra Canal <mcanal@igalia.com>
Tue, 14 Jan 2025 20:45:38 +0000 (17:45 -0300)
commite4b5ccd392b92300a2b341705cc4805681094e49
tree8e87292e548ed11ffdb28980995a93ce1e0da6c0
parentb7d40627813799870e72729c6fc979a8a40d9ba6
drm/v3d: Ensure job pointer is set to NULL after job completion

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
drivers/gpu/drm/v3d/v3d_irq.c