Possible JFFS2 bug

Charles Manning manningc2 at actrix.gen.nz
Fri Apr 12 04:21:08 EDT 2002

I'm not using JFFS2, but I happened to be reading the code in 2.4.18

In dir.c/jffs2_readdir()....

I notice that if the filldir returns <0 during the fill for "." and "..", the 
execution gotos out:. This bypasses the down() of the semaphore, however the 
semaphore still gets up()ed.

The up without a corresponding down was, I hunch, unintended.

Maybe someone using the code would like to take a look.

-- Charles

More information about the linux-mtd mailing list