2.1.22-patch_net-1

Keith Owens (kaos@ocs.com.au)
Sun, 26 Jan 1997 18:55:56 +1100


ipv6 init_module can return no code when compiled as a module. Changed
to EOVERFLOW as the closest error code.

diff -ur linux-2.1.22/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
--- linux-2.1.22/net/ipv6/af_inet6.c Sun Jan 26 12:06:22 1997
+++ linux/net/ipv6/af_inet6.c Sun Jan 26 15:57:48 1997
@@ -780,7 +780,11 @@
if (sizeof(struct ipv6_options) > sizeof(dummy_skb->cb))
{
printk(KERN_CRIT "inet6_proto_init: panic\n");
+#ifdef MODULE
+ return -EOVERFLOW;
+#else
return;
+#endif
}

(void) sock_register(&inet6_family_ops);