The patch titled

     isdn: fix capifs bug in initialization error path.

has been added to the -mm tree.  Its filename is

     isdn-fix-capifs-bug-in-initialization-error-path.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

isdn-fix-capifs-bug-in-initialization-error-path.patch
seclvl-use-securityfs.patch
seclvl-use-securityfs-tidy.patch
selinux-reduce-memory-use-by-avtab.patch



From: James Morris <[EMAIL PROTECTED]>

This patch fixes a bug in the capifs initialization code, where the
filesystem is not unregistered if kern_mount() fails.

Signed-off-by: James Morris <[EMAIL PROTECTED]>
Signed-off-by: Karsten Keil <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/isdn/capi/capifs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN 
drivers/isdn/capi/capifs.c~isdn-fix-capifs-bug-in-initialization-error-path 
drivers/isdn/capi/capifs.c
--- 
devel/drivers/isdn/capi/capifs.c~isdn-fix-capifs-bug-in-initialization-error-path
   2005-08-27 10:02:11.000000000 -0700
+++ devel-akpm/drivers/isdn/capi/capifs.c       2005-08-27 10:02:11.000000000 
-0700
@@ -191,8 +191,10 @@ static int __init capifs_init(void)
        err = register_filesystem(&capifs_fs_type);
        if (!err) {
                capifs_mnt = kern_mount(&capifs_fs_type);
-               if (IS_ERR(capifs_mnt))
+               if (IS_ERR(capifs_mnt)) {
                        err = PTR_ERR(capifs_mnt);
+                       unregister_filesystem(&capifs_fs_type);
+               }
        }
        if (!err)
                printk(KERN_NOTICE "capifs: Rev %s\n", rev);
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to