OSDN Git Service

ALSA: seq: Prohibit creating ports with special numbers
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:44 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:19 +0000 (12:11 +0200)
commit1359905383834ed5fc294fad3954d40dbcf770af
tree90d01c15df0f8e98441b29733e3b4fce2fc22b11
parent4f92eb792e9336a46480655ed18e8b59e2a6505c
ALSA: seq: Prohibit creating ports with special numbers

Some port numbers are special, such as 254 for subscribers and 255 for
broadcast.  Return error if application tries to create such a port.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-24-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c