commit | 04a992e1866c441031a34d256cde03f3e0217aec | [log] [tgz] |
---|---|---|
author | qctecmdr <qctecmdr@localhost> | Wed Sep 04 03:39:46 2019 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Sep 04 03:39:46 2019 -0700 |
tree | 87e388cf07fd05c744d7c1a85a71cf255e093624 | |
parent | 82d41666a3df3eac027adcf132d11c82f383f10a [diff] | |
parent | 26359bb255e24d93f6344ccb1a88e3a2123158e5 [diff] |
Merge "st-hal: Fix pcm NULL dereference"
diff --git a/st_hw_session_lsm.c b/st_hw_session_lsm.c index 68c5355..ec2a63b 100644 --- a/st_hw_session_lsm.c +++ b/st_hw_session_lsm.c
@@ -3872,6 +3872,11 @@ ALOGD("%s: Enter", __func__); + if (!p_lsm_ses->pcm) { + ALOGE("%s: pcm NULL", __func__); + return -ENODEV; + } + capture_device = platform_stdev_get_capture_device(p_ses->stdev->platform); platform_get_lsm_usecase(p_ses->stdev->platform, v_info,