aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/flexcan.c
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2017-11-23 15:44:35 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2017-12-01 11:20:52 +0100
commit5c2cb02edf79ad79d9b8d07c6d52243a948c4c9f (patch)
tree9bf6eba1d991a9e003e7dc9c9bc9faa97850c8e0 /drivers/net/can/flexcan.c
parentcan: ti_hecc: Fix napi poll return value for repoll (diff)
downloadlinux-dev-5c2cb02edf79ad79d9b8d07c6d52243a948c4c9f.tar.xz
linux-dev-5c2cb02edf79ad79d9b8d07c6d52243a948c4c9f.zip
can: peak/pci: fix potential bug when probe() fails
PCI/PCIe drivers for PEAK-System CAN/CAN-FD interfaces do some access to the PCI config during probing. In case one of these accesses fails, a POSITIVE PCIBIOS_xxx error code is returned back. This POSITIVE error code MUST be converted into a NEGATIVE errno for the probe() function to indicate it failed. Using the pcibios_err_to_errno() function, we make sure that the return code will always be negative. Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/flexcan.c')
0 files changed, 0 insertions, 0 deletions