aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-07-10 06:30:49 +0000
committerTakashi Iwai <[email protected]>2025-07-10 08:10:08 +0000
commit19c4096ccdd809c6213e2e62b0d4f57c880138cd (patch)
tree1f75bee8ede367405e0934d445ffce91a11c7c08 /drivers/fpga/tests
parentALSA: hda/realtek: Enable headset Mic on Positivo K116J (diff)
downloadkernel-19c4096ccdd809c6213e2e62b0d4f57c880138cd.tar.gz
kernel-19c4096ccdd809c6213e2e62b0d4f57c880138cd.zip
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: b21c60a4edd2 ("ALSA: core: add support for compress_offload") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Vinod Koul <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions