patch-2.4.0-test5 linux/net/ipx/af_ipx.c

Next file: linux/net/khttpd/main.c
Previous file: linux/net/ipv6/netfilter/ip6_tables.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/net/ipx/af_ipx.c linux/net/ipx/af_ipx.c
@@ -356,7 +356,7 @@
 	if(intrfc == ipx_internal_net)
 		ipx_internal_net = NULL;
 
-	kfree_s(intrfc, sizeof(*intrfc));
+	kfree(intrfc);
 	MOD_DEC_USE_COUNT;
 
 	return;
@@ -1235,7 +1235,7 @@
 		if(tmp->ir_intrfc == intrfc)
 		{
 			*r = tmp->ir_next;
-			kfree_s(tmp, sizeof(ipx_route));
+			kfree(tmp);
 		}
 		else
 			r = &(tmp->ir_next);
@@ -1268,7 +1268,7 @@
 				return (-EPERM);
 
 			*r = tmp->ir_next;
-			kfree_s(tmp, sizeof(ipx_route));
+			kfree(tmp);
 			return (0);
 		}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)