Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a47d43c authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AHAL: fix stack overflow when connecting usb device." into main am: d105a13b

parents 903a322b d105a13b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ ndk::ScopedAStatus StreamUsb::setConnectedDevices(
        }
        }
        connectedDeviceProfiles.push_back(*profile);
        connectedDeviceProfiles.push_back(*profile);
    }
    }
    RETURN_STATUS_IF_ERROR(setConnectedDevices(connectedDevices));
    RETURN_STATUS_IF_ERROR(StreamCommonImpl::setConnectedDevices(connectedDevices));
    std::lock_guard guard(mLock);
    std::lock_guard guard(mLock);
    mConnectedDeviceProfiles = std::move(connectedDeviceProfiles);
    mConnectedDeviceProfiles = std::move(connectedDeviceProfiles);
    mConnectedDevicesUpdated.store(true, std::memory_order_release);
    mConnectedDevicesUpdated.store(true, std::memory_order_release);