Re: [patch-2.4.0-test8-pre1] bugfix for init_proc_fs() (fwd)

From: Tigran Aivazian (tigran@veritas.com)
Date: Tue Aug 29 2000 - 13:23:39 EST


old habits never die - I keep cc'ing vger.rutgers.edu....

---------- Forwarded message ----------
Date: Tue, 29 Aug 2000 19:21:26 +0100 (BST)
From: Tigran Aivazian <tigran@veritas.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.rutgers.edu
Subject: Re: [patch-2.4.0-test8-pre1] bugfix for init_proc_fs()

ok, ok, I admit I cut and pasted my fix from pipefs into procfs TOO
LITERALLY :)

Here is the fixed fix:

--- linux/fs/proc/procfs_syms.c Sat May 13 09:32:35 2000
+++ work/fs/proc/procfs_syms.c Tue Aug 29 19:11:51 2000
@@ -28,7 +28,9 @@
         if (!err) {
                 proc_mnt = kern_mount(&proc_fs_type);
                 err = PTR_ERR(proc_mnt);
- if (!IS_ERR(proc_mnt))
+ if (IS_ERR(proc_mnt))
+ unregister_filesystem(&proc_fs_type);
+ else
                         err = 0;
         }
         return err;

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



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:24 EST