2002-04-23 13:38:02

by Bob Tracy

[permalink] [raw]
Subject: [PATCH] linux/kernel/acct.c

For non-SMP systems, running "accton" generates an "Oops". This was
diagnosed and fixed in the 2.5.7 timeframe, but the fix didn't make it
into 2.5.8. The following trivial patch is against vanilla 2.5.8:
please apply.

--- linux/kernel/acct.c.orig Mon Apr 22 09:33:45 2002
+++ linux/kernel/acct.c Mon Apr 22 10:39:01 2002
@@ -160,8 +160,6 @@
{
struct file *old_acct = NULL;

- BUG_ON(!spin_is_locked(&acct_globals.lock));
-
if (acct_globals.file) {
old_acct = acct_globals.file;
del_timer(&acct_globals.timer);

--
-----------------------------------------------------------------------
Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org
[email protected]
-----------------------------------------------------------------------