Searched hist:"5 c2cb02edf79ad79d9b8d07c6d52243a948c4c9f" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/can/peak_canfd/ |
H A D | peak_pciefd_main.c | diff 5c2cb02edf79ad79d9b8d07c6d52243a948c4c9f Thu Nov 23 08:44:35 CST 2017 Stephane Grosjean <s.grosjean@peak-system.com> 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>
|
/openbmc/linux/drivers/net/can/sja1000/ |
H A D | peak_pci.c | diff 5c2cb02edf79ad79d9b8d07c6d52243a948c4c9f Thu Nov 23 08:44:35 CST 2017 Stephane Grosjean <s.grosjean@peak-system.com> 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>
|