summaryrefslogtreecommitdiffstats
path: root/fs/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/iobuf.c')
-rw-r--r--fs/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iobuf.c b/fs/iobuf.c
index bcaa98826..540124355 100644
--- a/fs/iobuf.c
+++ b/fs/iobuf.c
@@ -55,7 +55,7 @@ int alloc_kiovec(int nr, struct kiobuf **bufp)
return -ENOMEM;
}
kiobuf_init(iobuf);
- *bufp++ = iobuf;
+ bufp[i] = iobuf;
}
return 0;