aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorMaíra Canal <[email protected]>2025-06-02 13:22:16 +0000
committerMaíra Canal <[email protected]>2025-06-16 23:18:13 +0000
commit61ee19dedb8d753249e20308782bf4e9e2fb7344 (patch)
treed0d62290c0990365c5c7ba57652eeb6555a2642c /lib/crypto/mpi/mpi-cmp.c
parentdrm/v3d: Avoid NULL pointer dereference in `v3d_job_update_stats()` (diff)
downloadkernel-61ee19dedb8d753249e20308782bf4e9e2fb7344.tar.gz
kernel-61ee19dedb8d753249e20308782bf4e9e2fb7344.zip
drm/etnaviv: Protect the scheduler's pending list with its lock
Commit 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still active") ensured that active jobs are returned to the pending list when extending the timeout. However, it didn't use the pending list's lock to manipulate the list, which causes a race condition as the scheduler's workqueues are running. Hold the lock while manipulating the scheduler's pending list to prevent a race. Cc: [email protected] Fixes: 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still active") Reported-by: Philipp Stanner <[email protected]> Closes: https://lore.kernel.org/dri-devel/[email protected]/ Reviewed-by: Lucas Stach <[email protected]> Reviewed-by: Philipp Stanner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maíra Canal <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions