patch-2.4.0-test5 linux/net/ipv4/ip_options.c

Next file: linux/net/ipv4/ip_sockglue.c
Previous file: linux/net/ipv4/igmp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/net/ipv4/ip_options.c linux/net/ipv4/ip_options.c
@@ -509,7 +509,7 @@
 	opt->is_data = 1;
 	opt->is_setbyuser = 1;
 	if (optlen && ip_options_compile(opt, NULL)) {
-		kfree_s(opt, sizeof(struct ip_options) + optlen);
+		kfree(opt);
 		return -EINVAL;
 	}
 	*optp = opt;

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