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

Commit c66a3961 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 4ae6b2de: am 44622db9: audio flinger: fix service fuzz test crash

* commit '4ae6b2de':
  audio flinger: fix service fuzz test crash
parents 2fb772e9 4ae6b2de
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1159,6 +1159,9 @@ status_t AudioFlinger::getRenderPosition(uint32_t *halFrames, uint32_t *dspFrame
void AudioFlinger::registerClient(const sp<IAudioFlingerClient>& client)
{
    Mutex::Autolock _l(mLock);
    if (client == 0) {
        return;
    }
    bool clientAdded = false;
    {
        Mutex::Autolock _cl(mClientLock);
@@ -1453,6 +1456,9 @@ Exit:

audio_module_handle_t AudioFlinger::loadHwModule(const char *name)
{
    if (name == NULL) {
        return 0;
    }
    if (!settingsAllowed()) {
        return 0;
    }