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

Commit 44622db9 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio flinger: fix service fuzz test crash

Bug: 13744704.
Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab
parent 678792e3
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;
    }