patch-2.1.90 linux/net/unix/af_unix.c
Next file: linux/net/x25/af_x25.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Mar 12 10:32:04 1998
- Orig file:
v2.1.89/linux/net/unix/af_unix.c
- Orig date:
Tue Mar 10 10:03:37 1998
diff -u --recursive --new-file v2.1.89/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -364,7 +364,7 @@
default:
return -ESOCKTNOSUPPORT;
}
- sk = sk_alloc(AF_UNIX, GFP_KERNEL);
+ sk = sk_alloc(AF_UNIX, GFP_KERNEL, 1);
if (!sk)
return -ENOMEM;
@@ -1265,7 +1265,9 @@
}
chunk = min(skb->len, size);
- /* N.B. This could fail with -EFAULT */
+ /* N.B. This could fail with a non-zero value (which means -EFAULT
+ * and the non-zero value is the number of bytes not copied).
+ */
memcpy_toiovec(msg->msg_iov, skb->data, chunk);
copied += chunk;
size -= chunk;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov