From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@redhat.com>
Cc: xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] libhandle: zap fdhash_head in fshandle_destroy
Date: Wed, 6 Dec 2017 22:08:54 -0800 [thread overview]
Message-ID: <20171207060854.GT19219@magnolia> (raw)
In-Reply-To: <20171206175401.GK19219@magnolia>
On Wed, Dec 06, 2017 at 09:54:01AM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> Set fdhash_head to zero once we've destroyed the handle list to avoid
> dangling pointer problems.
Ping?
(The xfsprogs update announcement said to resend, but meh.)
--D
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
> libhandle/handle.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libhandle/handle.c b/libhandle/handle.c
> index e6971dd..878d14d 100644
> --- a/libhandle/handle.c
> +++ b/libhandle/handle.c
> @@ -73,6 +73,7 @@ fshandle_destroy(void)
> free(h);
> h = nexth;
> }
> + fdhash_head = NULL;
> }
>
> int
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2017-12-07 6:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 17:54 [PATCH] libhandle: zap fdhash_head in fshandle_destroy Darrick J. Wong
2017-12-07 6:08 ` Darrick J. Wong [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=20171207060854.GT19219@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.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