Browse files

vcrtcm: when removing a CTD device mark it unused

when CTD device that is in use is removed, its IN_USE
status flag must be turned off because some functions that
may be racing the removal look at it and decide to bail
out if the flag is off

Signed-off-by: Ilija Hadzic <>
  • Loading branch information...
1 parent 9e7da26 commit 116d2d82e0366f27d7f12e8f8e3ef26b93c82ac0 Ilija Hadzic committed Sep 28, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/gpu/drm/vcrtcm/vcrtcm_ctd_methods.c
@@ -115,6 +115,7 @@ void vcrtcm_hw_del(int major, int minor, int flow)
spin_lock_irqsave(&vcrtcm_dev_info->lock, flags);
if (vcrtcm_dev_info->status & VCRTCM_STATUS_HAL_IN_USE) {
+ vcrtcm_dev_info->status &= ~VCRTCM_STATUS_HAL_IN_USE;
VCRTCM_INFO("HAL in use by CRTC %p, "

0 comments on commit 116d2d8

Please sign in to comment.