patch-2.0.28 linux/fs/smbfs/sock.c

Next file: linux/include/asm-i386/vm86.h
Previous file: linux/fs/smbfs/proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.27/linux/fs/smbfs/sock.c linux/fs/smbfs/sock.c
@@ -242,6 +242,10 @@
 				   length - already_read, 0, 0,
 				   NULL, NULL);
 
+		if (result == 0)
+		{
+			return -EIO;
+		}
 		if (result < 0)
 		{
 			DPRINTK("smb_receive_raw: recvfrom error = %d\n",

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov