IPX socket allocation patch

Volker.Lendecke (lendecke@math.uni-goettingen.de)
Mon, 14 Jul 1997 17:33:28 +0200


-----BEGIN PGP SIGNED MESSAGE-----

As part of the recent discussion regarding 2.0.30 I looked at
pre-2.0.31-2 a bit more closely and found that the following patch did
not make it in. I did not find it on www.linuxhq.com, so it might have
been lost. Whoever makes a pre-2.0.31-3 please include it. Thanks.

It fixes a very annoying and hard to find problem with hanging ipx
sockets. If you want to know more about the symptoms, please look at
the readme of ncpfs-2.0.10. MANY thanks to Martin Stover who finally
found it.

Volker

diff -u -urN 2.0.30/net/ipx/af_ipx.c 2.0.30-patched/net/ipx/af_ipx.c
- --- 2.0.30/net/ipx/af_ipx.c Wed Nov 27 08:44:21 1996
+++ 2.0.30-patched/net/ipx/af_ipx.c Mon Jul 14 17:25:12 1997
@@ -1723,6 +1723,7 @@
}
sk->rcvbuf=SK_RMEM_MAX;
sk->sndbuf=SK_WMEM_MAX;
+ sk->allocation=GFP_KERNEL;
sk->prot=NULL; /* So we use default free mechanisms */
skb_queue_head_init(&sk->receive_queue);
skb_queue_head_init(&sk->write_queue);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBM8pGsz/9BWnmOc5FAQHKugP/dupRGY9TeQ9w+lHlyZNIDywbf/XLEnxz
pdcvjoVfRg/j0aBsRZMkvEdviWWHjufDF3gJznhZMwwJir9Tw8i/JsclQcfI13ql
0YcUz31AO1TNauLcqRCpQ3K9p6hru4MK+xfHUX1HzqcRd1pKWpvh3CEeXz/mrr11
fMX0WlYCpCg=
=zKlF
-----END PGP SIGNATURE-----