lkml.org 
[lkml]   [1997]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.22-patch_net-1
Date
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 13:38    [W:3.243 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site