2001-03-11 19:48:03

by J?rgenCederl?f

[permalink] [raw]
Subject: [PATCH] Correct module count in do_mount()

If do_mount() fails in the wrong place, the filesystem module count
is incremented twice, but decremented only once.

This patch agains 2.4.2 fixes 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;
}