Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/radeon/kms: drop lock in return path of radeon_fence_count_emitted.

Silly bad return path.

Reported-and-Tested-by: Mikko Vinni
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>

+3 -1
+3 -1
drivers/gpu/drm/radeon/radeon_fence.c
··· 364 364 int not_processed = 0; 365 365 366 366 read_lock_irqsave(&rdev->fence_lock, irq_flags); 367 - if (!rdev->fence_drv[ring].initialized) 367 + if (!rdev->fence_drv[ring].initialized) { 368 + read_unlock_irqrestore(&rdev->fence_lock, irq_flags); 368 369 return 0; 370 + } 369 371 370 372 if (!list_empty(&rdev->fence_drv[ring].emitted)) { 371 373 struct list_head *ptr;