diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2020-07-22 16:31:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 15:17:04 -0700 |
commit | c75d1d5248c0c97996051809ad0e9f154ba5d76e (patch) | |
tree | 1cadd752d4d26374c14ee487680005698eb2b7e2 /drivers/net/geneve.c | |
parent | 76be93fc0702322179bb0ea87295d820ee46ad14 (diff) | |
download | linux-c75d1d5248c0c97996051809ad0e9f154ba5d76e.tar.gz linux-c75d1d5248c0c97996051809ad0e9f154ba5d76e.tar.bz2 linux-c75d1d5248c0c97996051809ad0e9f154ba5d76e.zip |
bonding: check return value of register_netdevice() in bond_newlink()
Very similar to commit 544f287b8495
("bonding: check error value of register_netdevice() immediately"),
we should immediately check the return value of register_netdevice()
before doing anything else.
Fixes: 005db31d5f5f ("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>
Diffstat (limited to 'drivers/net/geneve.c')
0 files changed, 0 insertions, 0 deletions