linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Correct module count in do_mount()
@ 2001-03-11 19:51 JörgenCederlöf
  0 siblings, 0 replies; only message in thread
From: JörgenCederlöf @ 2001-03-11 19:51 UTC (permalink / raw)
  To: torvalds; +Cc: alan, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 405 bytes --]

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;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-11 19:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-11 19:51 [PATCH] Correct module count in do_mount() JörgenCederlöf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).