]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: seq: Avoid client data changes during proc reads
authorTakashi Iwai <tiwai@suse.de>
Fri, 7 Mar 2025 08:42:43 +0000 (09:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Mar 2025 08:44:46 +0000 (09:44 +0100)
commitef749c8d9573d256da139b6ebccceb678ec00eaa
treecb8250a9530144f940727ac813f8689a30bd643f
parente3cd33ab17c33bd8f1a9df66ec83a15dd8f7afbb
ALSA: seq: Avoid client data changes during proc reads

The proc read of each client should protect against the concurrent
data changes to keep the data consistent; although they are supposed
to be safe and won't crash things, it doesn't guarantee the
consistency between the read values.  Take client->ioctl_mutex for
protecting against the concurrent changes.

Link: https://patch.msgid.link/20250307084246.29271-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c