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

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

diff -u --recursive --new-file v2.1.24/linux/fs/smbfs/sock.c linux/fs/smbfs/sock.c
@@ -240,6 +240,10 @@
 			       (void *) (source + already_sent),
 			       length - already_sent, 0, 0);
 
+		if (result == 0)
+		{
+			return -EIO;
+		}
 		if (result < 0)
 		{
 			DPRINTK("smb_send_raw: sendto error = %d\n",

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