linux/drivers/net
YueHaibing 4ff840604a sfp: Fix error handing in sfp_probe()
[ Upstream commit 9621618130 ]

gpiod_to_irq() never return 0, but returns negative in
case of error, check it and set gpio_irq to 0.

Fixes: 7397005545 ("sfp: add SFP module support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201031031053.25264-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:35:54 +01:00
..
appletalk
arcnet arcnet: provide a buffer big enough to actually receive packets 2019-10-05 13:09:26 +02:00
bonding bonding: set dev->needed_headroom in bond_setup_by_slave() 2020-10-14 10:31:25 +02:00
caif caif-hsi: fix possible deadlock in cfhsi_exit_module() 2019-07-28 08:29:23 +02:00
can can: flexcan: flexcan_chip_stop(): add error handling and propagate error value 2020-10-30 10:38:30 +01:00
dsa net: dsa: rtl8366rb: Support all 4096 VLANs 2020-10-29 09:55:11 +01:00
ethernet gianfar: Account for Tx PTP timestamp in the skb headroom 2020-11-10 12:35:54 +01:00
fddi
fjes fjes: fix missed check in fjes_acpi_add 2019-12-31 16:34:36 +01:00
hamradio yam: fix possible memory leak in yam_init_driver 2020-06-25 15:32:51 +02:00
hippi hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path 2020-07-29 10:16:48 +02:00
hyperv hv_netvsc: Remove "unlikely" from netvsc_select_queue 2020-09-23 12:10:57 +02:00
ieee802154 ieee802154/adf7242: check status of adf7242_read_reg 2020-10-01 13:14:51 +02:00
ipvlan ipvlan: fix device features 2020-09-03 11:24:17 +02:00
netdevsim
phy sfp: Fix error handing in sfp_probe() 2020-11-10 12:35:54 +01:00
plip
ppp pppoe: only process PADT targeted at local interfaces 2020-05-20 08:18:36 +02:00
slip slip: not call free_netdev before rtnl_unlock in slip_open 2020-03-20 11:55:54 +01:00
team net: team: fix memory leak in __team_options_register 2020-10-14 10:31:24 +02:00
usb net: usb: qmi_wwan: add Telit LE910Cx 0x1230 composition 2020-11-10 12:35:54 +01:00
vmxnet3 net: vmxnet3: fix possible buffer overflow caused by bad DMA value in vmxnet3_get_rss() 2020-06-22 09:05:12 +02:00
wan drivers/net/wan/hdlc_fr: Correctly handle special skb->protocol values 2020-11-05 11:08:43 +01:00
wimax wimax/i2400m: Fix potential urb refcnt leak 2020-05-10 10:30:08 +02:00
wireless ath10k: fix VHT NSS calculation when STBC is enabled 2020-11-05 11:08:40 +01:00
xen-netback xen/netback: use lateeoi irq binding 2020-11-05 11:08:36 +01:00
dummy.c
eql.c
geneve.c geneve: add transport ports in route lookup for geneve 2020-09-26 18:01:29 +02:00
gtp.c gtp: fix an use-before-init in gtp_newlink() 2020-11-05 11:08:32 +01:00
ifb.c
Kconfig geneve: change NET_UDP_TUNNEL dependency to select 2019-12-05 09:21:10 +01:00
LICENSE.SRC
loopback.c
macsec.c macsec: avoid use-after-free in macsec_handle_frame() 2020-10-14 10:31:23 +02:00
macvlan.c macvlan: validate setting of multiple remote source MAC addresses 2020-09-03 11:24:26 +02:00
macvtap.c
Makefile net: Always descend into dsa/ 2019-05-25 18:23:19 +02:00
mdio.c
mii.c
net_failover.c net_failover: fixed rollback in net_failover_open() 2020-06-22 09:04:58 +02:00
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: fix sleep time mismatch 2019-12-01 09:17:13 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending 2019-06-15 11:54:07 +02:00
tun.c tun: correct header offsets in napi frags mode 2020-06-22 09:04:58 +02:00
veth.c veth: Adjust hard_start offset on redirect XDP frames 2020-06-22 09:05:17 +02:00
virtio_net.c virtio_net: fix lockdep warning on 32 bit 2020-05-20 08:18:37 +02:00
vrf.c vrf: Check skb for XFRM_TRANSFORMED flag 2020-04-29 16:31:23 +02:00
vsockmon.c
vxlan.c Revert "vxlan: fix tos value before xmit" 2020-08-11 15:32:35 +02:00
xen-netfront.c xen-netfront: fix potential deadlock in xennet_remove() 2020-08-05 10:06:05 +02:00