From: Stephen Hemminger <shemminger@osdl.org>
To: Henner Eisen <eis@baty.hanse.de>, "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com
Subject: [PATCH] Allow lapb to be unloaded.
Date: Fri, 18 Jul 2003 15:01:01 -0700 [thread overview]
Message-ID: <20030718150101.0558d04e.shemminger@osdl.org> (raw)
In-Reply-To: <20030718133211.1c7ed08d.shemminger@osdl.org>
Without an exit routine lapb can't be unloaded.
Tested on 2.6.0-test1
diff -Nru a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
--- a/net/lapb/lapb_iface.c Fri Jul 18 14:52:18 2003
+++ b/net/lapb/lapb_iface.c Fri Jul 18 14:52:18 2003
@@ -443,8 +443,14 @@
return 0;
}
+static void __exit lapb_exit(void)
+{
+ WARN_ON(!list_empty(&lapb_list));
+}
+
MODULE_AUTHOR("Jonathan Naylor <g4klx@g4klx.demon.co.uk>");
MODULE_DESCRIPTION("The X.25 Link Access Procedure B link layer protocol");
MODULE_LICENSE("GPL");
module_init(lapb_init);
+module_exit(lapb_exit);
next prev parent reply other threads:[~2003-07-18 22:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-18 20:32 [PATCH] Remove MOD_* from LAPB Stephen Hemminger
2003-07-18 22:01 ` Stephen Hemminger [this message]
2003-07-20 4:47 ` [PATCH] Allow lapb to be unloaded David S. Miller
2003-07-20 4:44 ` [PATCH] Remove MOD_* from LAPB David S. Miller
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=20030718150101.0558d04e.shemminger@osdl.org \
--to=shemminger@osdl.org \
--cc=davem@redhat.com \
--cc=eis@baty.hanse.de \
--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).