mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "AHAL: fix stack overflow when connecting usb device." into main am: d105a13b24
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2748878 Change-Id: Ie7cba8d772f12c8eccbb57fed1010f2349d97a75 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user