lkml.org 
[lkml]   [1999]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] IPX oops in 2.2.1 kernel
Date
Seems that this was fixed in ipx_connect and ipx_recvmsg in 2.2.0-pre8, but
not in ipx_sendmsg. I'm not sure this is right, but it follows what
ipx_connect and ipx_recvmsg do, and it stops it from oops'ing. *shrug*

--
Daniel Drown <abob@dpd130.rh.psu.edu>
--- af_ipx.c.old Wed Feb 10 14:59:10 1999
+++ af_ipx.c Wed Feb 10 17:00:38 1999
@@ -2133,8 +2133,11 @@
uaddr.sipx_port = 0;
uaddr.sipx_network = 0L;
#ifdef CONFIG_IPX_INTERN
- memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc
- ->if_node, IPX_NODE_LEN);
+ if(sk->protinfo.af_ipx.intrfc)
+ memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc
+ ->if_node,IPX_NODE_LEN);
+ else
+ return -ENETDOWN; /* Someone zonked the iface */
#endif
ret = ipx_bind(sock, (struct sockaddr *)&uaddr,
sizeof(struct sockaddr_ipx));
\
 
 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2011 Jasper Spaans