Skip to contentSkip to conversation

one-line bugfix 2.4.2 iobuf.c

PATCH New Anthony J. Battersby 1 participant 1 message Mar 27, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 --------

iobuf.c Wed Mar 21 10:12:30 2001 renamed from iobuf.c.orig Wed Mar 21 10:12:36 2001 +1 -1
@@ -55,7 +55,7 @@
                        return -ENOMEM;
                }
                kiobuf_init(iobuf);
-               *bufp++ = iobuf;
+               bufp[i] = iobuf;
        }
 
        return 0;

-------- End Patch --------

When replying, please CC me at [email protected] since I am not subscribed to the mailing list.

--Tony Battersby