summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorChandanaKishori Chiluveru <cchilu@codeaurora.org>2014-03-11 17:09:50 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-26 03:29:37 -0700
commita510e932e4f77fa5f5d01c4223c3d2fb2f3a88c7 (patch)
tree183af8a4189d8bf03eb1c404889e2825b26aafd6 /lib/mpi/mpi-inline.h
parentc5685ec0f3941352bad2535c8612058563ff064a (diff)
usb: gadget: Fix synchronization issue between f_audio_source
Race is happening when both audio_pcm_close() and audio_send() executes in parallel. When the PCM session is closed, the substream attribute of the audio_dev structure is set to NULL in audio_pcm_close(). As there is no synchronization protection for the audio_dev subtream attributes in audio_send(), it is causing NULL pointer dereference. Hence fixing the issue by adding proper synchronization protection for the audio_dev subtream attributes in audio_send(). CRs-Fixed: 613498 Change-Id: Id9ab0d4e347b8bb2f551f9033829e541bdcaf0e8 Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org> Signed-off-by: Tarun Gupta <tarung@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions