summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixelBot AutoMerger <android-nexus-securitybot@system.gserviceaccount.com>2022-01-16 18:28:17 -0800
committerSecurityBot <android-nexus-securitybot@system.gserviceaccount.com>2022-01-16 18:28:17 -0800
commit66d6f76222f2d2430226a413f3d28e6a7a9d0cd5 (patch)
treef4208e3a70852cfe233380922f1d20b20efdfa39
parent7c6cfed3e7ea8bb6371872aa8700d8d1f01456f4 (diff)
parent629eb69aa336e5c3a9528859928a077424d72b21 (diff)
downloadmsm-extra-android-msm-redbull-4.19-s-qpr3-beta-3.tar.gz
SBMerger: 410055097 Change-Id: I4b7c4b507445afd9f5bee23ee2fb7e8f728443ef Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
-rw-r--r--asoc/msm-pcm-routing-v2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c
index a704b570..d0ce8714 100644
--- a/asoc/msm-pcm-routing-v2.c
+++ b/asoc/msm-pcm-routing-v2.c
@@ -2376,6 +2376,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);