patch-pre2.0.13 linux/fs/read_write.c

Next file: linux/fs/smbfs/dir.c
Previous file: linux/fs/nfs/rpcsock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.12/linux/fs/read_write.c linux/fs/read_write.c
@@ -203,7 +203,7 @@
 	const struct iovec * vector, unsigned long count)
 {
 	size_t tot_len;
-	struct iovec iov[MAX_IOVEC];
+	struct iovec iov[UIO_MAXIOV];
 	int retval, i;
 	IO_fn_t fn;
 
@@ -213,7 +213,7 @@
 	 */
 	if (!count)
 		return 0;
-	if (count > MAX_IOVEC)
+	if (count > UIO_MAXIOV)
 		return -EINVAL;
 	retval = verify_area(VERIFY_READ, vector, count*sizeof(*vector));
 	if (retval)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this