Re: 2.1.27 oops

Ion Badulescu (ionut@moisil.wal.rhno.columbia.edu)
Sat, 8 Mar 1997 17:54:47 -0500 (EST)


On 7 Mar 1997, Tim Ricketts wrote:

> I got an oops while untarring the source for gcc-2.7.2.2 in an emacs
> shell under 2.1.27. The process died but the machine didn't crash.

This is an old bug in the 2.1 series, I'm surprised the fix still hasn't
made it into the official kernel.

Patch follows..

Ionut

--
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.

--- linux-2.1.24/fs/buffer.c.old Sun Jan 26 05:07:30 1997 +++ linux-2.1.24/fs/buffer.c Thu Jan 30 01:40:06 1997 @@ -582,6 +582,8 @@ of other sizes, this is necessary now that we no longer have the lav code. */ try_to_free_buffer(bh,&bh,1); + if (!bh) + break; continue; }