From: Dan Carpenter <dan.carpenter@oracle.com>
To: "J. Bruce Fields" <bfields@redhat.com>
Cc: Matthew Wilcox <matthew@wil.cx>,
Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] locks: missing unlock on error in generic_add_lease()
Date: Wed, 13 Nov 2013 17:07:31 +0300 [thread overview]
Message-ID: <20131113140731.GN5302@mwanda> (raw)
In-Reply-To: <20131113135103.GA27536@pad.fieldses.org>
On Wed, Nov 13, 2013 at 08:51:04AM -0500, J. Bruce Fields wrote:
> On Wed, Nov 13, 2013 at 10:56:27AM +0300, Dan Carpenter wrote:
> > We should unlock here before returning.
>
> A buggy-caller case, so shouldn't be a huge deal, but obviously should
> be fixed, thanks!
>
> Acked-by: J. Bruce Fields <bfields@redhat.com>
>
> I'm assuming Al will pick it up.
>
> (Though error = -EAGAIN and "goto out" would be more consistent with
> other exits.)
-EINVAL, but yeah you're right. I'll resend.
regards,
dan carpenter
next prev parent reply other threads:[~2013-11-13 14:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 7:56 [patch] locks: missing unlock on error in generic_add_lease() Dan Carpenter
2013-11-13 13:51 ` J. Bruce Fields
2013-11-13 14:07 ` Dan Carpenter [this message]
2013-11-13 14:10 ` [patch v2] " Dan Carpenter
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=20131113140731.GN5302@mwanda \
--to=dan.carpenter@oracle.com \
--cc=bfields@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).