From b7773c6292da3996254e9be08e9f73a19aca673d Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 20 Aug 2002 17:09:54 +0000 Subject: [PATCH] Fix missing increment for multi-page I/O cleanup/verification, found by Eric. --- lustre/obdclass/class_obd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index a299cd4..0bac970 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -527,7 +527,7 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp, err = obd_brw(rw, &conn, &smd, j, pga, ll_sync_io_cb, cbd); EXIT; brw_cleanup: - for (j = 0, pgp = pga; j < pages; j++) { + for (j = 0, pgp = pga; j < pages; j++, pgp++) { if (pgp->pg != NULL) { int err2; void *addr = kmap(pgp->pg); -- 1.8.3.1