Explanation:
The bufp pointer should be indexed rather than incremented because it is used
a few lines above as a base pointer to free successfully allocated items if
kmalloc fails.
-------- Begin Patch --------
--- fs/iobuf.c.orig Wed Mar 21 10:12:36 2001
+++ fs/iobuf.c Wed Mar 21 10:12:30 2001
@@ -55,7 +55,7 @@
return -ENOMEM;
}
kiobuf_init(iobuf);
- *bufp++ = iobuf;
+ bufp[i] = iobuf;
}
return 0;
-------- End Patch --------
When replying, please CC me at abatters@widomaker.com since I am not subscribed to
the mailing list.
--Tony Battersby
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:15 EST