Re: (subset) [PATCH 1/1] leds: ss4200: Convert PCIBIOS_* return codes to errnos

From: Lee Jones
Date: Fri May 31 2024 - 11:05:49 EST


On Mon, 27 May 2024 16:27:00 +0300, Ilpo Järvinen wrote:
> ich7_lpc_probe() uses pci_read_config_dword() that returns PCIBIOS_*
> codes. The error handling code assumes incorrectly it's a normal errno
> and checks for < 0. The return code is returned from the probe function
> as is but probe functions should return normal errnos.
>
> Remove < 0 from the check and convert PCIBIOS_* returns code using
> pcibios_err_to_errno() into normal errno before returning it.
>
> [...]

Applied, thanks!

[1/1] leds: ss4200: Convert PCIBIOS_* return codes to errnos
commit: c1f69631a8f438997621c9ff322452b744525048

--
Lee Jones [李琼斯]