Slab bug fix (2.1.37-40)

Mark Hemment (markhe@sco.COM)
Tue, 27 May 1997 09:49:02 +0100 (BST)


Darn. Tested on 3 boxes, one had an uptime of 10 days, and a bug still
gets in... *blush* (and sorry).

Please apply the below patch to mm/slab.c.
If anybody still gets "kfree" messages, or panics involving
kfree()/kfree_s(), then please let me know.

--- slab.c.00 Tue May 27 09:36:30 1997
+++ slab.c Tue May 27 09:37:36 1997
@@ -1433,6 +1433,7 @@
/* Someone may have stolen our objs. Doesn't matter, we'll
* just come back here again.
*/
+ spin_lock_irq(&cachep->c_spinlock);
goto try_again;
}
/* Couldn't grow, but some objs may have been freed. */

Regards,

markhe

----------------------------------------------------
Mark Hemment UNIX/C Sotware Engineer (contractor)
"Success has many fathers. Failure is a b**tard"
----------------------------------------------------