[BRIDGE]: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c127ea2c45
commit
32fe21c0c0
@@ -47,7 +47,10 @@ static int __init br_init(void)
|
||||
if (err)
|
||||
goto err_out2;
|
||||
|
||||
br_netlink_init();
|
||||
err = br_netlink_init();
|
||||
if (err)
|
||||
goto err_out3;
|
||||
|
||||
brioctl_set(br_ioctl_deviceless_stub);
|
||||
br_handle_frame_hook = br_handle_frame;
|
||||
|
||||
@@ -55,7 +58,8 @@ static int __init br_init(void)
|
||||
br_fdb_put_hook = br_fdb_put;
|
||||
|
||||
return 0;
|
||||
|
||||
err_out3:
|
||||
unregister_netdevice_notifier(&br_device_notifier);
|
||||
err_out2:
|
||||
br_netfilter_fini();
|
||||
err_out1:
|
||||
|
Reference in New Issue
Block a user