Messages in this thread Patch in this message | | | Date | Mon, 26 Mar 2001 20:54:17 -0500 | From | "Anthony J. Battersby" <> | Subject | [PATCH] one-line bugfix 2.4.2 iobuf.c |
| |
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/
| |