summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-03-22 10:40:27 +0100
committerTakashi Iwai <tiwai@suse.de>2018-03-22 10:40:27 +0100
commit8e6b1a72a75bb5067ccb6b56d8ca4aa3a300a64e (patch)
treede66818727c2bff44061cfd97a9f2001475485d0 /Makefile
parent67a01afaf3d34893cf7d2ea19b34555d6abb7cb0 (diff)
ALSA: aloop: Fix access to not-yet-ready substream via cable
In loopback_open() and loopback_close(), we assign and release the substream object to the corresponding cable in a racy way. It's neither locked nor done in the right position. The open callback assigns the substream before its preparation finishes, hence the other side of the cable may pick it up, which may lead to the invalid memory access. This patch addresses these: move the assignment to the end of the open callback, and wrap with cable->lock for avoiding concurrent accesses. Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions