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

Commit f60ba063 authored by Saranya Chidura's avatar Saranya Chidura
Browse files

coresight: tmc: Fix the unbalanced lock in tmc_read()



'commit 734aabed17090 ("coresight: tmc: Fix use after free issue
with tmc read")' adds lock in tmc_read() to fix race condition seen in
reading tmc buffer and enabling the device.But commit has unbalanced
lock. This patch fixes the lock.

Change-Id: Iaf3ecd83ef5af346725885ea2c84c4185f1a1c50
Signed-off-by: default avatarSaranya Chidura <schidura@codeaurora.org>
parent 365fabdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1586,7 +1586,7 @@ out:
	dev_dbg(drvdata->dev, "%s: %zu bytes copied, %d bytes left\n",
		__func__, len, (int) (drvdata->size - *ppos));

	mutex_lock(&drvdata->usb_lock);
	mutex_unlock(&drvdata->usb_lock);
	return len;
}