patch-2.1.42 linux/net/ax25/ax25_iface.c

Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/ax25/ax25_ds_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/net/ax25/ax25_iface.c linux/net/ax25/ax25_iface.c
@@ -1,9 +1,6 @@
 /*
  *	AX.25 release 036
  *
- *	This is ALPHA test software. This code may break your machine, randomly fail to work with new 
- *	releases, misbehave and/or generally screw up. It might even work. 
- *
  *	This code REQUIRES 2.1.15 or higher/ NET3.038
  *
  *	This module:
@@ -98,7 +95,7 @@
 	if (protocol->pid == pid) {
 		protocol_list = protocol->next;
 		restore_flags(flags);
-		kfree_s(protocol, sizeof(struct protocol_struct));
+		kfree(protocol);
 		return;
 	}
 
@@ -107,7 +104,7 @@
 			s = protocol->next;
 			protocol->next = protocol->next->next;
 			restore_flags(flags);
-			kfree_s(s, sizeof(struct protocol_struct));
+			kfree(s);
 			return;
 		}
 
@@ -152,7 +149,7 @@
 	if (linkfail->func == func) {
 		linkfail_list = linkfail->next;
 		restore_flags(flags);
-		kfree_s(linkfail, sizeof(struct linkfail_struct));
+		kfree(linkfail);
 		return;
 	}
 
@@ -161,7 +158,7 @@
 			s = linkfail->next;
 			linkfail->next = linkfail->next->next;
 			restore_flags(flags);
-			kfree_s(s, sizeof(struct linkfail_struct));
+			kfree(s);
 			return;
 		}
 
@@ -210,7 +207,7 @@
 	if (ax25cmp(&listen->callsign, callsign) == 0 && listen->dev == dev) {
 		listen_list = listen->next;
 		restore_flags(flags);
-		kfree_s(listen, sizeof(struct listen_struct));
+		kfree(listen);
 		return;
 	}
 
@@ -219,7 +216,7 @@
 			s = listen->next;
 			listen->next = listen->next->next;
 			restore_flags(flags);
-			kfree_s(s, sizeof(struct listen_struct));
+			kfree(s);
 			return;
 		}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov