* [patch 1/2] linux-2.6.7/net/8021q/vlan.c: add error check
@ 2004-11-20 2:42 janitor
0 siblings, 0 replies; only message in thread
From: janitor @ 2004-11-20 2:42 UTC (permalink / raw)
To: davem; +Cc: netdev, janitor, WHarms, wharms
Content-type: text/plain; charset=us-ascii
Hi list,
the patches are still for 2.6.7.
The remaining issues are solved (hopefully). i have added
spaces before and after "=".
in ipx i moved the __init strings back and added a comment
form acme to say why.
unfortunly my hopes of having a working smtp mail system didnt
come true. so i have still to use c&p what may result in
<tab> -> <space> probelms.
---------------------------------------------------------
add error check for register_netdevice_notifier()
Signed-off-by: walter harms <wharms@bfs.de>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---
linux-2.6.10-rc2-bk4-max/net/8021q/vlan.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
diff -puN net/8021q/vlan.c~check-register_netdevice_notifier-net_8021q_vlan net/8021q/vlan.c
--- linux-2.6.10-rc2-bk4/net/8021q/vlan.c~check-register_netdevice_notifier-net_8021q_vlan 2004-11-20 03:01:53.000000000 +0100
+++ linux-2.6.10-rc2-bk4-max/net/8021q/vlan.c 2004-11-20 03:01:53.000000000 +0100
@@ -102,7 +102,12 @@ static int __init vlan_proto_init(void)
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 1;
+ }
vlan_ioctl_set(vlan_ioctl_handler);
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-20 2:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-20 2:42 [patch 1/2] linux-2.6.7/net/8021q/vlan.c: add error check janitor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).