Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb49ae32 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight-tmc: Adds lock to avoid race condition"

parents df39bd34 81f3b9aa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1018,6 +1018,7 @@ static void tmc_disable(struct tmc_drvdata *drvdata, enum tmc_mode mode)
{
	unsigned long flags;

	mutex_lock(&drvdata->mem_lock);
	spin_lock_irqsave(&drvdata->spinlock, flags);
	if (drvdata->reading)
		goto out;
@@ -1054,7 +1055,7 @@ out:
	}

	pm_runtime_put(drvdata->dev);

	mutex_unlock(&drvdata->mem_lock);
	dev_info(drvdata->dev, "TMC disabled\n");
}