mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Asoc: check for invalid voice session id
Add check to return if session id is invalid. Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426 Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
This commit is contained in:
parent
895a1ddf26
commit
28a5f16642
1 changed files with 5 additions and 0 deletions
|
|
@ -2876,6 +2876,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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue