summaryrefslogtreecommitdiff
path: root/crypto/lzo-rle.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-05-27 16:27:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 10:00:39 +0300
commite9ad5a675cba22b0a4ecb7632adf8d9c5dd72f7d (patch)
tree6d59324d4c32da7c1e3944e6ef94085b869e6757 /crypto/lzo-rle.c
parentfdcadf496f09eda221cca58b5cf13b405d1aba3f (diff)
downloadlinux-e9ad5a675cba22b0a4ecb7632adf8d9c5dd72f7d.tar.xz
leds: ss4200: Convert PCIBIOS_* return codes to errnos
commit ce068e83976140badb19c7f1307926b4b562fac4 upstream. 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. Fixes: a328e95b82c1 ("leds: LED driver for Intel NAS SS4200 series (v5)") Cc: <stable@vger.kernel.org> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240527132700.14260-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/lzo-rle.c')
0 files changed, 0 insertions, 0 deletions