patch-2.1.42 linux/net/lapb/lapb_iface.c
Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ax25/sysctl_net_ax25.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed May 28 10:49:12 1997
- Orig file:
v2.1.41/linux/net/lapb/lapb_iface.c
- Orig date:
Tue May 13 22:41:24 1997
diff -u --recursive --new-file v2.1.41/linux/net/lapb/lapb_iface.c linux/net/lapb/lapb_iface.c
@@ -50,7 +50,7 @@
*/
static void lapb_free_cb(lapb_cb *lapb)
{
- kfree_s(lapb, sizeof(lapb_cb));
+ kfree(lapb);
MOD_DEC_USE_COUNT;
}
@@ -123,7 +123,7 @@
{
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 @@
}
#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);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov