aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorHamad Kadmany <hkadmany@codeaurora.org>2013-02-05 15:04:32 +0200
committerHamad Kadmany <hkadmany@codeaurora.org>2013-02-05 15:04:32 +0200
commit9f87e22fae04c53c1a348f7edf248a22a2d9a9bf (patch)
treec8b196df6aeab42e4fdff133e6baa7ef687c7de7 /scripts/gcc-wrapper.py
parentf23e2fd3ebd1d8216f65d6147bdb6848749716b2 (diff)
media: dvb: mpq: Fix race-condition in mutex locking
mpq_dmx_decoder_fullness_wait was called either from dvb-demux or internally by the plug-in. In the first case mutex should be locked before checking the video buffer while in the second case it was called while the mutex was already locked. Due to this the function checked whether the mutex is already locked or not. This check it not atomic, if the function is called by dvb-demux while the mutex is un-locked, after this check it is possible to have a context-switch and the mutex gets locked by other API functions of the plug-in, which could lead to dead-lock or invalid states. Change-Id: I32ce4aa3ee7a93c1a8a4fda1d0f916e65eab11ce Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions