Skip to content
Commit c75d1d52 authored by Cong Wang's avatar Cong Wang Committed by David S. Miller
Browse files

bonding: check return value of register_netdevice() in bond_newlink()

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

Fixes: 005db31d

 ("bonding: set carrier off for devices created through netlink")
Reported-and-tested-by: default avatar <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: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76be93fc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment