From: Tejun Heo <tj@kernel.org>
To: Colin King <colin.king@canonical.com>
Cc: linux-ide@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] libata: ensure host is free'd on error exit paths
Date: Tue, 27 Mar 2018 13:57:05 +0000 [thread overview]
Message-ID: <20180327135705.GK1840639@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20180327132601.12749-1-colin.king@canonical.com>
On Tue, Mar 27, 2018 at 02:26:01PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The host structure is not being kfree'd on two error exit paths
> leading to memory leaks. Add in new err_free label and kfree host.
>
> Detected by CoverityScan, CID#1466103 ("Resource leak")
>
> Fixes: 2623c7a5f279 ("libata: add refcounting to ata_host")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied to libata/for-4.17.
Thanks.
--
tejun
WARNING: multiple messages have this Message-ID (diff)
From: Tejun Heo <tj@kernel.org>
To: Colin King <colin.king@canonical.com>
Cc: linux-ide@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] libata: ensure host is free'd on error exit paths
Date: Tue, 27 Mar 2018 06:57:05 -0700 [thread overview]
Message-ID: <20180327135705.GK1840639@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20180327132601.12749-1-colin.king@canonical.com>
On Tue, Mar 27, 2018 at 02:26:01PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The host structure is not being kfree'd on two error exit paths
> leading to memory leaks. Add in new err_free label and kfree host.
>
> Detected by CoverityScan, CID#1466103 ("Resource leak")
>
> Fixes: 2623c7a5f279 ("libata: add refcounting to ata_host")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied to libata/for-4.17.
Thanks.
--
tejun
next prev parent reply other threads:[~2018-03-27 13:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 13:26 [PATCH][next] libata: ensure host is free'd on error exit paths Colin King
2018-03-27 13:26 ` Colin King
2018-03-27 13:57 ` Tejun Heo [this message]
2018-03-27 13:57 ` Tejun Heo
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=20180327135705.GK1840639@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=colin.king@canonical.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--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 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.