mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "Asoc: check for invalid voice session id"
This commit is contained in:
commit
a300875e9f
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