mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
coresight: tmc: Fix mem_lock dead lock
Mem_lock was not unlocked when multiple sources were enabled and one of them was disabled first. Free mem_lock in that path. Change-Id: I380b2ce89c2df2dfd91754d2257503ade69545ce Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
This commit is contained in:
parent
a70116e190
commit
59430433d6
1 changed files with 1 additions and 0 deletions
|
|
@ -1650,6 +1650,7 @@ static int tmc_disable_etr_sink(struct coresight_device *csdev)
|
|||
|
||||
if (atomic_dec_return(csdev->refcnt)) {
|
||||
spin_unlock_irqrestore(&drvdata->spinlock, flags);
|
||||
mutex_unlock(&drvdata->mem_lock);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue