Skip to contentSkip to conversation

Correct module count in do_mount()

PATCH New J�rgenCederl�f 1 participant 1 message Mar 11, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

super.c renamed from super.c.orig +2 -0
@@ -1414,6 +1414,8 @@
 fail:
 	if (list_empty(&sb->s_mounts))
 		kill_super(sb, 0);
+	else
+		put_filesystem(fstype);
 	goto unlock_out;
 }