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

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

Merge "soc: qcom: bam_dmux: Do not perform close() on non-open channels"

parents 0bd86201 9393565b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1158,7 +1158,7 @@ int msm_bam_dmux_close(uint32_t id)
	if (id >= BAM_DMUX_NUM_CHANNELS)
		return -EINVAL;
	DBG("%s: closing ch %d\n", __func__, id);
	if (!bam_mux_initialized)
	if (!bam_mux_initialized || !bam_ch_is_local_open(id))
		return -ENODEV;

	read_lock(&ul_wakeup_lock);