Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mei: convert PCI error to common errno

Ensure that callers receive only < 0 return value on error.
Convert PCI error returned by pci_read_config_dword()
to common errno before returning from function.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://patch.msgid.link/20260201094358.1440593-6-alexander.usyskin@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Usyskin and committed by
Greg Kroah-Hartman
60ca1597 eb1b5fc7

+2 -2
+1 -1
drivers/misc/mei/hw-txe.c
··· 653 653 fw_src->status[i], 654 654 fw_status->status[i], ret); 655 655 if (ret) 656 - return ret; 656 + return pcibios_err_to_errno(ret); 657 657 } 658 658 659 659 return 0;
+1 -1
drivers/misc/mei/pci-me.c
··· 153 153 154 154 ret = pci_read_config_dword(pdev, where, val); 155 155 trace_mei_pci_cfg_read(&dev->dev, name, where, *val, ret); 156 - return ret; 156 + return pcibios_err_to_errno(ret); 157 157 } 158 158 159 159 /**