patch-2.1.34 linux/net/netbeui/af_netbeui.c
Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Apr 14 09:31:10 1997
-  Orig file: 
v2.1.33/linux/net/netbeui/af_netbeui.c
-  Orig date: 
Thu Feb 27 10:57:32 1997
diff -u --recursive --new-file v2.1.33/linux/net/netbeui/af_netbeui.c linux/net/netbeui/af_netbeui.c
@@ -513,7 +513,7 @@
 		 *	Protocol layer
 		 */
 		case TIOCOUTQ:
-			amount=sk->sndbuf-sk->wmem_alloc;
+			amount = sk->sndbuf - atomic_read(&sk->wmem_alloc);
 			if(amount<0)
 				amount=0;
 			break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov