mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
coresight-tmc-etr: remove mem_lock when call usb_qdss_close
This mem_lock will cause deadlock when usb close router call back to usb_notifier. so remove it. Change-Id: I9530c843702ca605f6935cc0ac6d9649bf204594 Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
This commit is contained in:
parent
9f842b7a49
commit
5bbfc7877b
1 changed files with 2 additions and 0 deletions
|
|
@ -2201,7 +2201,9 @@ static int _tmc_disable_etr_sink(struct coresight_device *csdev,
|
|||
spin_unlock_irqrestore(&drvdata->spinlock,
|
||||
flags);
|
||||
tmc_etr_bam_disable(drvdata);
|
||||
mutex_unlock(&drvdata->mem_lock);
|
||||
usb_qdss_close(drvdata->usbch);
|
||||
mutex_lock(&drvdata->mem_lock);
|
||||
drvdata->usbch = NULL;
|
||||
goto out;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue