ALSA: compress_offload: tighten ioctl command number checks
The snd_compr_ioctl() ignores the upper 24 bits of the ioctl command number and only compares the number of the ioctl command, which can cause unintended behavior if an application tries to use an unsupprted command that happens to have the same _IOC_NR() value. Remove the truncation to the low bits and compare the entire ioctl command code like every other driver does. Fixes: b21c60a4 ("ALSA: core: add support for compress_offload") Signed-off-by:Arnd Bergmann <arnd@arndb.de> Acked-by:
Vinod Koul <vkoul@kernel.org> Link: https://patch.msgid.link/20250710063059.2683476-1-arnd@kernel.org Signed-off-by:
Takashi Iwai <tiwai@suse.de>
Loading
Please sign in to comment