OSDN Git Service

audioflinger: Fix for a deadlock in track creation
authorHaynes Mathew George <hgeorge@codeaurora.org>
Fri, 13 Dec 2013 23:40:13 +0000 (15:40 -0800)
committerEric Laurent <elaurent@google.com>
Tue, 4 Mar 2014 23:36:20 +0000 (15:36 -0800)
commite010f65e6337267cb15f8894c950a3f64370dd36
treee631dc8a6690f18c6b977272404abe1df70cc30c
parenta4f24ff9b239300b4bb2098c1413c0a60edc2d7e
audioflinger: Fix for a deadlock in track creation

AudioFlinger enters a deadlock (with itself) on trying to free a
RecordTrack or Track object that failed initialization. Clear this
bad object from the caller instead.

Bug: 12423233
Change-Id: I926f2beb922a70f6924e593e2bbf1a5b5df85b16
services/audioflinger/AudioFlinger.cpp
services/audioflinger/Threads.cpp