lkml.org 
[lkml]   [1997]   [Jan]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromKeith Owens <>
Subject2.1.22-patch_net-1
DateSun, 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);


\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008