]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: seq: Check the conflicting port at port creation
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:42 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:17 +0000 (12:11 +0200)
commit7c3f0d3d3a1147f7eee79e090d0b047ab5fd3068
treef97c9c60bbd1267fde67bfc74ee5745a4d633ab3
parent94c5b717ada970c0136a9369f620d11773b38a51
ALSA: seq: Check the conflicting port at port creation

We didn't check if a port with the given port number has been already
present at creating a new port.  Check it and return -EBUSY properly
if the port number conflicts.

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