diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-08-05 13:53:57 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-08-05 13:53:57 -0700 |
commit | 132d8fc6b30a414e9d90350958912f2580acafd6 (patch) | |
tree | 4620db018010d1106505f7dadfcb4503bb51cb48 /hal/voice_extn | |
parent | 6420a92e4d71d9ebdf9d9d6f8a4a470fc16e15c9 (diff) | |
parent | b51ceb1e78981cc8aa6f82a8964c4c4dd7d5c7fc (diff) | |
download | android_hardware_qcom_audio-132d8fc6b30a414e9d90350958912f2580acafd6.tar.gz android_hardware_qcom_audio-132d8fc6b30a414e9d90350958912f2580acafd6.tar.bz2 android_hardware_qcom_audio-132d8fc6b30a414e9d90350958912f2580acafd6.zip |
Merge "hal: miscellaneous fixes"
Diffstat (limited to 'hal/voice_extn')
-rw-r--r-- | hal/voice_extn/compress_voip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hal/voice_extn/compress_voip.c b/hal/voice_extn/compress_voip.c index 841f866a..e709505e 100644 --- a/hal/voice_extn/compress_voip.c +++ b/hal/voice_extn/compress_voip.c @@ -335,6 +335,12 @@ static int voip_start_call(struct audio_device *adev, if (uc_info == NULL) { ALOGV("%s: voip usecase is added to the list", __func__); uc_info = (struct audio_usecase *)calloc(1, sizeof(struct audio_usecase)); + + if (!uc_info) { + ALOGE("failed to allocate voip usecase mem"); + return -ENOMEM; + } + uc_info->id = USECASE_COMPRESS_VOIP_CALL; uc_info->type = VOIP_CALL; if (voip_data.out_stream) |