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

Commit b8159eff authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

soc: qcom: msm_glink_pkt: Fix the lock ownership



Do not unlock the mutex that has not been locked earlier and fix any
associated warnings.

CRs-Fixed: 922243
Change-Id: I0d96ed482f8469b8d65d2a8806be26b8848760e3
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent 85125f66
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -733,10 +733,8 @@ static unsigned int glink_pkt_poll(struct file *file, poll_table *wait)
		GLINK_PKT_ERR("%s: Invalid device handle\n", __func__);
		return POLLERR;
	}
	if (devp->in_reset) {
		mutex_unlock(&devp->ch_lock);
	if (devp->in_reset)
		return POLLHUP;
	}

	devp->poll_mode = 1;
	poll_wait(file, &devp->ch_read_wait_queue, wait);