Small patch for 2.1.116p2

Christian Loth (sg618lo@unidui.uni-duisburg.de)
Sun, 16 Aug 1998 17:11:01 +0200 (MESZ)


Greetings,

The following mini patch made kernel/kmod.c compile for me.
But as I just started looking into the kernel source (whenever
time allows) I can't give any guarantee for corectness...

--- kmod.orig Sun Aug 16 17:00:05 1998
+++ kmod.c Sun Aug 16 17:00:41 1998
@@ -41,7 +41,7 @@
/* don't use the user's root, use init's root instead */
exit_fs(current); /* current->fs->count--; */
current->fs = task_init->fs;
- current->fs->count++;
+ atomic_inc(&current->fs->count);

unlock_kernel();
}

- Chris

-- 
/----------------------------------------------------------------------------\
| Christian Loth                      | Meet me as the >Shadowdancer< in the | 
| chris@rom.mud.de                    |           REALM OF MAGIC             |
| http://rom.mud.de/~chris            | telnet rom.mud.de 4000               |
|                                     | http://rom.mud.de/                   |
|               "The road goes ever on and on!" - Bilbo Baggins              |
\----------------------------------------------------------------------------/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html