AHAL: fix stack overflow when connecting usb device.

Bug: 300146600
Test: manually
Change-Id: Ic904a5f9d4d61a2b7dc896ed593c12da4793f1cb
This commit is contained in:
jiabin
2023-09-12 21:23:44 +00:00
parent e22224e336
commit 1e467c2849

View File

@@ -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);