* [PATCH] one-line bugfix 2.4.2 iobuf.c
@ 2001-03-27 1:54 Anthony J. Battersby
0 siblings, 0 replies; only message in thread
From: Anthony J. Battersby @ 2001-03-27 1:54 UTC (permalink / raw)
To: torvalds, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-27 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-27 1:54 [PATCH] one-line bugfix 2.4.2 iobuf.c Anthony J. Battersby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox