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

Commit 5b809d70 authored by Lakshman Chaluvaraju's avatar Lakshman Chaluvaraju Committed by Gerrit - the friendly Code Review server
Browse files

Asoc: check for invalid voice session id



Add check to return if session id is invalid.

Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: default avatarLakshman Chaluvaraju <lchalu@codeaurora.org>
parent aa52958f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2374,6 +2374,11 @@ static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
	session_id = msm_pcm_routing_get_voc_sessionid(val);
	if (!session_id) {
		pr_err("%s: Invalid session_id %x\n", __func__, session_id);
		return;
	}
	pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
		__func__, val, session_id);