mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Asoc: check for invalid voice session id
Add check to return if session id is invalid. Change-Id: Id156612a341a370529945aa7ac9ea01fb8796f4f Signed-off-by: Jing Wang <quic_jingwa@quicinc.com>
This commit is contained in:
parent
69b18bb03c
commit
c781ff0891
1 changed files with 5 additions and 0 deletions
|
|
@ -3052,6 +3052,11 @@ static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
|
|||
pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
|
||||
__func__, val, session_id);
|
||||
|
||||
if (!session_id) {
|
||||
pr_err("%s: Invalid session_id %x\n", __func__, session_id);
|
||||
return;
|
||||
}
|
||||
|
||||
mutex_lock(&routing_lock);
|
||||
|
||||
if (set)
|
||||
|
|
|
|||
Loading…
Reference in a new issue