lkml.org 
[lkml]   [2001]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.020 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site