]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Use bool for snd_seq_queue internal flags
authorTakashi Iwai <tiwai@suse.de>
Sun, 6 Dec 2020 08:34:56 +0000 (09:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 6 Dec 2020 08:35:53 +0000 (09:35 +0100)
commit1127ea794a6645504c73240636c185b267b6407e
tree3a9b7dee24763df8201c072df9bcc19ea6ce0a3a
parent2cf4825178a8f560d1b08075f1e69f85d2f14359
ALSA: seq: Use bool for snd_seq_queue internal flags

The snd_seq_queue struct contains various flags in the bit fields.
Those are categorized to two different use cases, both of which are
protected by different spinlocks.  That implies that there are still
potential risks of the bad operations for bit fields by concurrent
accesses.

For addressing the problem, this patch rearranges those flags to be
a standard bool instead of a bit field.

Reported-by: syzbot+63cbe31877bb80ef58f5@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20201206083456.21110-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_queue.h