umber-kernel/sound/pci/au88x0
Haotian Zhang d4371c266b 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>
2025-11-17 17:23:52 +01:00
..
Makefile
au88x0.c
au88x0.h
au88x0_a3d.c
au88x0_a3d.h
au88x0_a3ddata.c
au88x0_core.c
au88x0_eq.c
au88x0_eq.h
au88x0_eqdata.c
au88x0_game.c
au88x0_mixer.c
au88x0_mpu401.c
au88x0_pcm.c
au88x0_synth.c
au88x0_wt.h
au88x0_xtalk.c
au88x0_xtalk.h
au8810.c
au8810.h
au8820.c
au8820.h
au8830.c
au8830.h