From: Jan Kara <jack@suse.cz>
To: Fabian Frederick <fabf@skynet.be>
Cc: linux-kernel@vger.kernel.org, Jan Kara <jack@suse.cz>
Subject: Re: [PATCH 1/1 linux-next] udf: destroy sbi mutex in put_super
Date: Mon, 12 Jan 2015 10:58:34 +0100 [thread overview]
Message-ID: <20150112095834.GB4468@quack.suse.cz> (raw)
In-Reply-To: <1420913612-8844-1-git-send-email-fabf@skynet.be>
On Sat 10-01-15 19:13:32, Fabian Frederick wrote:
> Call mutex_destroy() on superblock mutex in udf_put_super()
> otherwise mutex debugging code isn't able to detect that
> mutex is used after being freed.
> (thanks to Jan Kara for complete definition).
Applied, thanks.
Honza
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> fs/udf/super.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/udf/super.c b/fs/udf/super.c
> index 3ccb2f1..3d35a75 100644
> --- a/fs/udf/super.c
> +++ b/fs/udf/super.c
> @@ -2300,6 +2300,7 @@ static void udf_put_super(struct super_block *sb)
> udf_close_lvid(sb);
> brelse(sbi->s_lvid_bh);
> udf_sb_free_partitions(sb);
> + mutex_destroy(&sbi->s_alloc_mutex);
> kfree(sb->s_fs_info);
> sb->s_fs_info = NULL;
> }
> --
> 2.1.0
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2015-01-12 9:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 18:13 Fabian Frederick
2015-01-12 9:58 ` Jan Kara [this message]
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=20150112095834.GB4468@quack.suse.cz \
--to=jack@suse.cz \
--cc=fabf@skynet.be \
--cc=linux-kernel@vger.kernel.org \
/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®