diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2020-07-09 17:09:14 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2020-07-09 17:34:53 +0900 |
commit | 03b339411a0dcec99091e7ad772544b2732e1e38 (patch) | |
tree | f3be691ad1c6c314714093b60a578eb179872e37 | |
parent | c48d8ac46662c7eb4a24813da5302a5f4112e6da (diff) | |
download | audio-hal-sc7727-03b339411a0dcec99091e7ad772544b2732e1e38.tar.gz audio-hal-sc7727-03b339411a0dcec99091e7ad772544b2732e1e38.tar.bz2 audio-hal-sc7727-03b339411a0dcec99091e7ad772544b2732e1e38.zip |
tizen-audio-routing: Initialize value to avoid a crashtizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114801submit/tizen_6.0_hotfix/20201102.192501submit/tizen_6.0/20201029.205101submit/tizen/20200709.084932submit/tizen/20200709.084332accepted/tizen/unified/20200710.114032accepted/tizen/6.0/unified/hotfix/20201103.051255accepted/tizen/6.0/unified/20201030.123839tizen_6.0_hotfixaccepted/tizen_6.0_unified_hotfix
There was a call related case dereferencing this value without
initializing it in __reset_voice_devices_info().
[Version] 0.1.32
[Issue Type] Improvement
Change-Id: I1c6ea3448d072501985ec6c8287efc316bc62cbf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
-rw-r--r-- | packaging/audio-hal-sc7727.spec | 2 | ||||
-rw-r--r-- | tizen-audio-routing.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec index a575d74..7a84689 100644 --- a/packaging/audio-hal-sc7727.spec +++ b/packaging/audio-hal-sc7727.spec @@ -1,6 +1,6 @@ Name: audio-hal-sc7727 Summary: TIZEN Audio HAL for SC7727 -Version: 0.1.31 +Version: 0.1.32 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio-routing.c b/tizen-audio-routing.c index a9e8e47..54ebdbf 100644 --- a/tizen-audio-routing.c +++ b/tizen-audio-routing.c @@ -375,6 +375,8 @@ audio_return_t _audio_routing_init(audio_hal_t *ah) ah->device.active_out = 0x0; ah->device.mode = VERB_NORMAL; ah->device.is_radio_on = 0; + ah->device.init_call_devices = NULL; + ah->device.num_of_call_devices = 0; if ((audio_ret = _ucm_init(ah))) AUDIO_LOG_ERROR("failed to _ucm_init(), ret(0x%x)", audio_ret); |