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

Commit 09ddc60f authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink_pkt: Remove incorrect mutex_unlock



When a channel is reset and a client is still reading, glink pkt
executes an error case. Remove the incorrect mutex_unlock in this case.

Change-Id: I2c28dadf327b09eaa55f9853e8bf1f55017c4e51
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent aac89833
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -352,9 +352,7 @@ ssize_t glink_pkt_read(struct file *file, char __user *buf,

	if (!completion_done(&gpdev->ch_open)) {
		GLINK_PKT_ERR("%s channel in reset\n", gpdev->ch_name);
		mutex_unlock(&gpdev->lock);
		return -ENETRESET;

	}

	GLINK_PKT_INFO("begin for %s by %s:%ld ref_cnt[%d]\n",