Skip to content
Snippets Groups Projects
Commit 172a0f50 authored by Murad Masimov's avatar Murad Masimov Committed by Takashi Iwai
Browse files

ALSA: usx2y: validate nrpacks module parameter on probe


The module parameter defines number of iso packets per one URB. User is
allowed to set any value to the parameter of type int, which can lead to
various kinds of weird and incorrect behavior like integer overflows,
truncations, etc. Number of packets should be a small non-negative number.

Since this parameter is read-only, its value can be validated on driver
probe.

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarMurad Masimov <m.masimov@mt-integration.ru>
Link: https://patch.msgid.link/20250303100413.835-1-m.masimov@mt-integration.ru


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f603b159
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment