mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jorgen Cederlof <jorgen.cederlof@cendio.se>
To: torvalds@transmeta.com
Cc: alan@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] Bug in do_mount()
Date: Sat, 24 Mar 2001 14:58:23 +0100	[thread overview]
Message-ID: <20010324145822.B1353@ondska> (raw)

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


             reply	other threads:[~2001-03-24 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-24 13:58 Jorgen Cederlof [this message]
2001-03-24 14:13 ` Alexander Viro
2001-03-24 17:28   ` Jorgen Cederlof
2001-03-24 17:43     ` Alexander Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010324145822.B1353@ondska \
    --to=jorgen.cederlof@cendio.se \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®