netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: janitor@sternwelten.at
To: davem@davemloft.net
Cc: netdev@oss.sgi.com, janitor@sternwelten.at, WHarms@bfs.de, wharms@bfs.de
Subject: [patch 1/2]  linux-2.6.7/net/8021q/vlan.c: add error check
Date: Sat, 20 Nov 2004 03:42:57 +0100	[thread overview]
Message-ID: <E1CVLDF-00026h-OK@sputnik> (raw)



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);
 
_

                 reply	other threads:[~2004-11-20  2:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1CVLDF-00026h-OK@sputnik \
    --to=janitor@sternwelten.at \
    --cc=WHarms@bfs.de \
    --cc=davem@davemloft.net \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).