patch-2.3.39 linux/fs/iobuf.c

Next file: linux/fs/minix/inode.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/fs/iobuf.c linux/fs/iobuf.c
@@ -88,7 +88,7 @@
 		return 0;
 	}
 	
-	memcpy (maplist,  iobuf->maplist,   wanted * sizeof(struct page **));
+	memcpy (maplist, iobuf->maplist, iobuf->array_len * sizeof(struct page **));
 
 	if (iobuf->array_len > KIO_STATIC_PAGES)
 		kfree (iobuf->maplist);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)