From: Alex Elder <elder@ieee.org>
To: roy.qing.li@gmail.com, sage@inktank.com, ceph-devel@vger.kernel.org
Subject: Re: [PATCH] libceph: fix a memory leak in handle_watch_notify
Date: Wed, 10 Sep 2014 20:41:57 -0500 [thread overview]
Message-ID: <5410FDE5.5090804@ieee.org> (raw)
In-Reply-To: <1410394821-13054-1-git-send-email-roy.qing.li@gmail.com>
On 09/10/2014 07:20 PM, roy.qing.li@gmail.com wrote:
> From: Li RongQing <roy.qing.li@gmail.com>
>
> event_work should be freed when adding it to queue failed
>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Looks good.
Reviewed-by: Alex Elder <elder@linaro.org>
> ---
> net/ceph/osd_client.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
> index 30f6faf..1e1b4f1 100644
> --- a/net/ceph/osd_client.c
> +++ b/net/ceph/osd_client.c
> @@ -2323,6 +2323,7 @@ static void handle_watch_notify(struct ceph_osd_client *osdc,
> event_work->opcode = opcode;
> if (!queue_work(osdc->notify_wq, &event_work->work)) {
> dout("WARNING: failed to queue notify event work\n");
> + kfree(event_work);
> goto done_err;
> }
> }
>
next prev parent reply other threads:[~2014-09-11 1:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 0:20 [PATCH] libceph: fix a memory leak in handle_watch_notify roy.qing.li
2014-09-11 1:41 ` Alex Elder [this message]
2014-09-11 8:31 ` Ilya Dryomov
2014-09-11 10:50 ` Alex Elder
2014-09-11 11:11 ` Ilya Dryomov
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=5410FDE5.5090804@ieee.org \
--to=elder@ieee.org \
--cc=ceph-devel@vger.kernel.org \
--cc=roy.qing.li@gmail.com \
--cc=sage@inktank.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.