diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-17 14:55:59 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-11-17 17:23:52 +0100 |
| commit | d4371c266ba3d708cd760d5dbfec960c399d3552 (patch) | |
| tree | b2f5b2ea7e8c285f6432938daa743ef51f0ce36a /scripts/extract-fwblobs | |
| parent | 21a9ab5b90b3716a631d559e62818029b4e7f5b7 (diff) | |
| download | linux-d4371c266ba3d708cd760d5dbfec960c399d3552.tar.gz | |
ALSA: au88x0: Fix incorrect error handling for PCI config reads
__snd_vortex_probe() uses pci_read_config_word() that returns PCIBIOS_*
codes (positive values on error). However, the function checks 'err < 0'
which can never be true for PCIBIOS_* codes, causing errors to be silently
ignored.
Check for non-zero return value and convert PCIBIOS_* codes using
pcibios_err_to_errno() into normal errno before returning them.
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251117065559.1138-1-vulab@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions
