diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-08-06 17:32:23 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-08-06 18:10:21 +0200 |
| commit | 3690ef20469d5959378260e2752f2314a2572913 (patch) | |
| tree | 96c0c3a76b65156e66cc732e5e86de2d5c8a832a /tools/perf/scripts/python/stackcollapse.py | |
| parent | d18a260720f86a5f8b5fcfefc4ba2e9dd01c10f8 (diff) | |
ALSA: portman2x4: Check card index validity at probe
Although portman2x4 driver has a check of the given devptr->id value,
it doesn't check for a negative id, which is often given as "none" or
such value when bound via sysfs. This may lead to OOB access for
index[] and other parameters.
Add a sanity check for the card index and warn/correct it if it's a
value out of the range.
Cc: stable@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260806153227.1460166-7-tiwai@suse.de
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
