[PATCH] Bug in do_mount()

From: Jorgen Cederlof (jorgen.cederlof@cendio.se)
Date: Sat Mar 24 2001 - 08:58:23 EST


do_mount() can sometimes fail to mount a filesystem, but still
increment the filesystem module count.

This patch against 2.4.2 should fix the problem.

       Jörgen

--- fs/super.c.orig Sun Mar 11 20:25:26 2001
+++ fs/super.c Sun Mar 11 20:05:27 2001
@@ -1414,6 +1414,8 @@
 fail:
         if (list_empty(&sb->s_mounts))
                 kill_super(sb, 0);
+ else
+ put_filesystem(fstype);
         goto unlock_out;
 }
 

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



This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:10 EST