summaryrefslogtreecommitdiffstats
path: root/net/lapb
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-03 09:23:20 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-03 09:23:20 +0000
commitac5ff8f4a72f7b4e66f73c3c6cb9fe7758cf6f12 (patch)
tree9fc7f8ce32e0d9a4aa055b2a58a05a5d727b333c /net/lapb
parent52662ff3e66770fd7e4fc508c91056d29c08bff0 (diff)
Sync with Linux 2.1.42.
Diffstat (limited to 'net/lapb')
-rw-r--r--net/lapb/lapb_iface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
index f28f8fb8d..2be6e565e 100644
--- a/net/lapb/lapb_iface.c
+++ b/net/lapb/lapb_iface.c
@@ -50,7 +50,7 @@ static lapb_cb *volatile lapb_list = NULL;
*/
static void lapb_free_cb(lapb_cb *lapb)
{
- kfree_s(lapb, sizeof(lapb_cb));
+ kfree(lapb);
MOD_DEC_USE_COUNT;
}
@@ -123,7 +123,7 @@ static lapb_cb *lapb_create_cb(void)
{
lapb_cb *lapb;
- if ((lapb = (lapb_cb *)kmalloc(sizeof(*lapb), GFP_ATOMIC)) == NULL)
+ if ((lapb = kmalloc(sizeof(*lapb), GFP_ATOMIC)) == NULL)
return NULL;
MOD_INC_USE_COUNT;
@@ -404,6 +404,9 @@ __initfunc(void lapb_proto_init(struct net_proto *pro))
}
#ifdef MODULE
+MODULE_AUTHOR("Jonathan Naylor <g4klx@g4klx.demon.co.uk>");
+MODULE_DESCRIPTION("The X.25 Link Access Procedure B link layer protocol");
+
int init_module(void)
{
lapb_proto_init(NULL);