]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: serial-generic: remove shared static buffer
authorJohn Keeping <jkeeping@inmusicbrands.com>
Mon, 15 Sep 2025 09:42:19 +0000 (10:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Sep 2025 10:33:53 +0000 (12:33 +0200)
commit84973249011fda3ff292f83439a062fec81ef982
treea6225edb11775ebc1e0e4f2e8f094ee3fbe71d2e
parentc29287bb32bc72a037c34d84a160060a6122b7ed
ALSA: serial-generic: remove shared static buffer

If multiple instances of this driver are instantiated and try to send
concurrently then the single static buffer snd_serial_generic_tx_work()
will cause corruption in the data output.

Move the buffer into the per-instance driver data to avoid this.

Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/serial-generic.c