mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Bug in do_mount()
@ 2001-03-24 13:58 Jorgen Cederlof
  2001-03-24 14:13 ` Alexander Viro
  0 siblings, 1 reply; 4+ messages in thread
From: Jorgen Cederlof @ 2001-03-24 13:58 UTC (permalink / raw)
  To: torvalds; +Cc: alan, linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-03-24 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-24 13:58 [PATCH] Bug in do_mount() Jorgen Cederlof
2001-03-24 14:13 ` Alexander Viro
2001-03-24 17:28   ` Jorgen Cederlof
2001-03-24 17:43     ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®