linux-stable/drivers/net/can
Jiasheng Jiang f56b423bce can: xilinx_can: xcan_probe(): check for error irq
[ Upstream commit c6564c13da ]

For the possible failure of the platform_get_irq(), the returned irq
could be error number and will finally cause the failure of the
request_irq().

Consider that platform_get_irq() can now in certain cases return
-EPROBE_DEFER, and the consequences of letting request_irq()
effectively convert that into -EINVAL, even at probe time rather than
later on. So it might be better to check just now.

Fixes: b1201e44f5 ("can: xilinx CAN controller support")
Link: https://lore.kernel.org/all/20211224021324.1447494-1-jiasheng@iscas.ac.cn
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 09:19:37 +01:00
..
c_can can: c_can: move runtime PM enable/disable to c_can_platform 2021-03-30 14:35:26 +02:00
cc770
dev net: introduce CAN specific pointer in the struct net_device 2021-04-07 14:47:41 +02:00
ifi_canfd
m_can can: m_can: Disable and ignore ELO interrupt 2021-12-14 14:49:02 +01:00
mscan can: mscan: mscan_rx_poll(): fix rx path lockup when returning from polling to irq mode 2020-01-14 20:08:27 +01:00
peak_canfd can: peak_pciefd: pucan_handle_status(): fix a potential starvation issue in TX path 2021-07-14 16:53:04 +02:00
rcar can: rcar_can: fix suspend/resume 2021-10-27 09:54:26 +02:00
sja1000 can: sja1000: fix use after free in ems_pcmcia_add_card() 2021-12-14 14:48:59 +01:00
softing can: softing: softing_startstop(): fix set but not used variable warning 2022-01-27 09:19:37 +01:00
spi can: hi311x: fix a signedness bug in hi3110_cmd() 2021-08-04 12:27:40 +02:00
usb can: gs_usb: gs_can_start_xmit(): zero-initialize hf->{flags,reserved} 2022-01-16 09:15:39 +01:00
at91_can.c
flexcan.c can: flexcan: flexcan_chip_freeze(): fix chip freeze for missing bitrate 2021-03-30 14:35:26 +02:00
grcan.c
janz-ican3.c
Kconfig can: kvaser_pciefd: select CONFIG_CRC32 2021-01-17 14:05:35 +01:00
kvaser_pciefd.c can: kvaser_pciefd: kvaser_pciefd_rx_error_frame(): increase correct stats->{rx,tx}_errors counter 2021-12-14 14:48:59 +01:00
led.c
Makefile can: dev: move driver related infrastructure into separate subdir 2021-04-07 14:47:41 +02:00
pch_can.c can: pch_can: pch_can_rx_normal: fix use after free 2021-12-14 14:49:01 +01:00
slcan.c net: introduce CAN specific pointer in the struct net_device 2021-04-07 14:47:41 +02:00
sun4i_can.c
ti_hecc.c can: ti_hecc: Fix memleak in ti_hecc_probe 2020-11-24 13:29:06 +01:00
vcan.c net: introduce CAN specific pointer in the struct net_device 2021-04-07 14:47:41 +02:00
vxcan.c net: introduce CAN specific pointer in the struct net_device 2021-04-07 14:47:41 +02:00
xilinx_can.c can: xilinx_can: xcan_probe(): check for error irq 2022-01-27 09:19:37 +01:00