From 3580f42df4aa4d667bcc0c64766515c998a0eb2c Mon Sep 17 00:00:00 2001 From: jiabin Date: Tue, 12 Sep 2023 23:11:16 +0000 Subject: [PATCH] AHAL: fix stack overflow when connecting usb device. Bug: 300146600 Test: manually (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1e467c28493e6306dc48d5822db8ea7cc7d28fbc) Merged-In: Ic904a5f9d4d61a2b7dc896ed593c12da4793f1cb Change-Id: Ic904a5f9d4d61a2b7dc896ed593c12da4793f1cb --- audio/aidl/default/usb/StreamUsb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/aidl/default/usb/StreamUsb.cpp b/audio/aidl/default/usb/StreamUsb.cpp index b60b4fd020..9b10432b18 100644 --- a/audio/aidl/default/usb/StreamUsb.cpp +++ b/audio/aidl/default/usb/StreamUsb.cpp @@ -52,7 +52,7 @@ ndk::ScopedAStatus StreamUsb::setConnectedDevices( } connectedDeviceProfiles.push_back(*profile); } - RETURN_STATUS_IF_ERROR(setConnectedDevices(connectedDevices)); + RETURN_STATUS_IF_ERROR(StreamCommonImpl::setConnectedDevices(connectedDevices)); std::lock_guard guard(mLock); mConnectedDeviceProfiles = std::move(connectedDeviceProfiles); mConnectedDevicesUpdated.store(true, std::memory_order_release);