diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp index 230e833c9d832..ebd470f412e7b 100644 --- a/libs/audioflinger/AudioFlinger.cpp +++ b/libs/audioflinger/AudioFlinger.cpp @@ -1018,7 +1018,7 @@ sp AudioFlinger::PlaybackThread::createTra Mutex::Autolock _l(mLock); track = new Track(this, client, streamType, sampleRate, format, channelCount, frameCount, sharedBuffer); - if (track->getCblk() == NULL) { + if (track->getCblk() == NULL || track->name() < 0) { lStatus = NO_MEMORY; goto Exit; }