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

Next file: linux/fs/super.c
Previous file: linux/fs/proc/openpromfs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.15/linux/fs/smbfs/sock.c linux/fs/smbfs/sock.c
@@ -263,6 +263,10 @@
 				   (void *) (target + already_read),
 				   length - already_read, 0, 0, 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