patch-2.4.14 linux/net/unix/af_unix.c

Next file: linux/CREDITS
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -1317,8 +1317,8 @@
 		if (size > sk->sndbuf/2 - 64)
 			size = sk->sndbuf/2 - 64;
 
-		if (size > (128 * 1024) / 2)
-			size = (128 * 1024) / 2;
+		if (size > SKB_MAX_ALLOC)
+			size = SKB_MAX_ALLOC;
 			
 		/*
 		 *	Grab a buffer


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)