Commit 7f5b6fb4 authored by Maximilian Attems's avatar Maximilian Attems Committed by David S. Miller

[VLAN]: Handler register_netdevice_notifier() errors.

Signed-off-by: default avatarwalter harms <wharms@bfs.de>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c10c057
......@@ -96,13 +96,18 @@ static int __init vlan_proto_init(void)
printk(KERN_ERR
"%s %s: can't create entry in proc filesystem!\n",
__FUNCTION__, VLAN_NAME);
return 1;
return err;
}
dev_add_pack(&vlan_packet_type);
/* Register us to receive netdevice events */
register_netdevice_notifier(&vlan_notifier_block);
err = register_netdevice_notifier(&vlan_notifier_block);
if (err < 0) {
dev_remove_pack(&vlan_packet_type);
vlan_proc_cleanup();
return err;
}
vlan_ioctl_set(vlan_ioctl_handler);
......
Markdown is supported
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