gpu: ttm: add __releases function
Subsystems (3)
PATCH 1/1 gpu: ttm: add __releases function
Add releases() function to fix context imbalance.
Issue detected by sparse tool.
warning: context imbalance in ttm_bo_cleanup_refs - unexpected unlock
Signed-off-by Jules Irenge <[email protected]>
--- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +1 -1
@@ -544,7 +544,7 @@ static void ttm_bo_cleanup_refs_or_queue(struct ttm_buffer_object *bo)static int ttm_bo_cleanup_refs (struct ttm_buffer_object *bo,bool interruptible,bool no_wait_gpu, -bool unlock_resv) + bool unlock_resv) __releases(&glob->lru_lock) {struct ttm_bo_global *glob = bo->bdev->glob;struct dma_resv *resv;
Signature · 1 line
2.23.0