From 6f57cd97786a895a51766a5902a3cad7d931727f Mon Sep 17 00:00:00 2001 From: Pawan Wagh Date: Wed, 1 Feb 2023 21:14:34 +0000 Subject: [PATCH] Fixing null deference crash in audio service Bug: 267517128 Test: atest VtsHalAudioCoreTargetTest Change-Id: I8949270b456d65e516946ffd294a5328da9de14b --- audio/aidl/default/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/aidl/default/Module.cpp b/audio/aidl/default/Module.cpp index 82d1ef8329..905ff2ccaa 100644 --- a/audio/aidl/default/Module.cpp +++ b/audio/aidl/default/Module.cpp @@ -953,7 +953,7 @@ ndk::ScopedAStatus Module::setMicMute(bool in_mute) { } ndk::ScopedAStatus Module::getMicrophones(std::vector* _aidl_return) { - *_aidl_return = mConfig->microphones; + *_aidl_return = getConfig().microphones; LOG(DEBUG) << __func__ << ": returning " << ::android::internal::ToString(*_aidl_return); return ndk::ScopedAStatus::ok(); }