linux/drivers/net
Cong Wang 6ca307f3fa bonding: check return value of register_netdevice() in bond_newlink()
[ Upstream commit c75d1d5248 ]

Very similar to commit 544f287b84
("bonding: check error value of register_netdevice() immediately"),
we should immediately check the return value of register_netdevice()
before doing anything else.

Fixes: 005db31d5f ("bonding: set carrier off for devices created through netlink")
Reported-and-tested-by: syzbot+bbc3a11c4da63c1b74d6@syzkaller.appspotmail.com
Cc: Beniamino Galvani <bgalvani@redhat.com>
Cc: Taehee Yoo <ap420073@gmail.com>
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-29 10:16:51 +02:00
..
appletalk
arcnet
bonding bonding: check return value of register_netdevice() in bond_newlink() 2020-07-29 10:16:51 +02:00
caif
can slcan: Don't transmit uninitialized stack data in padding 2020-04-13 10:45:08 +02:00
dsa net: dsa: bcm_sf2: Fix node reference count 2020-07-22 09:32:03 +02:00
ethernet net: ethernet: ave: Fix error returns in ave_init 2020-07-29 10:16:50 +02:00
fddi
fjes
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
ieee802154 ieee802154: fix one possible memleak in adf7242_probe 2020-07-29 10:16:49 +02:00
ipvlan
netdevsim
phy net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration 2020-07-29 10:16:49 +02:00
plip
ppp pppoe: only process PADT targeted at local interfaces 2020-05-20 08:18:36 +02:00
slip
team team: fix hang in team_mode_get() 2020-04-29 16:31:22 +02:00
usb ax88172a: fix ax88172a_unbind() failures 2020-07-29 10:16:49 +02: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/lapbether: Fixed the value of hard_header_len 2020-07-29 10:16:45 +02:00
wimax wimax/i2400m: Fix potential urb refcnt leak 2020-05-10 10:30:08 +02:00
wireless Revert "ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb" 2020-07-16 08:17:27 +02:00
xen-netback
dummy.c
eql.c
geneve.c geneve: change from tx_error to tx_dropped on missing metadata 2020-06-25 15:33:02 +02:00
gtp.c gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp() 2020-05-27 17:37:33 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: macsec: preserve ingress frame ordering 2020-05-14 07:57:17 +02:00
macvlan.c macvlan: Skip loopback packets in RX handler 2020-06-22 09:05:19 +02:00
macvtap.c
Makefile
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
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
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 vxlan: Avoid infinite loop when suppressing NS messages with invalid options 2020-06-22 09:04:58 +02:00
xen-netfront.c