From: Ulf Hansson <ulf.hansson@linaro.org> To: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>, "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@renesas.com>, Emil Renner Berthing <kernel@esmil.dk>, Doug Anderson <dianders@chromium.org>, Masahiro Yamada <yamada.masahiro@socionext.com>, Linux ARM <linux-arm-kernel@lists.infradead.org>, "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/2] mmc: uniphier-sd: Fix a resource leak in the remove function Date: Tue, 2 Mar 2021 11:38:59 +0100 [thread overview] Message-ID: <CAPDyKFozVZ9PR1JeQ6F8Ua-YcdpK-rS9TLDe6BW71avpiF5f4w@mail.gmail.com> (raw) In-Reply-To: <20210220142953.918608-1-christophe.jaillet@wanadoo.fr> On Sat, 20 Feb 2021 at 15:29, Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote: > > A 'tmio_mmc_host_free()' call is missing in the remove function, in order > to balance a 'tmio_mmc_host_alloc()' call in the probe. > This is done in the error handling path of the probe, but not in the remove > function. > > Add the missing call. > > Fixes: 3fd784f745dd ("mmc: uniphier-sd: add UniPhier SD/eMMC controller driver") > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Applied for next and by adding a stable tag, thanks! Kind regards Uffe > --- > drivers/mmc/host/uniphier-sd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/uniphier-sd.c b/drivers/mmc/host/uniphier-sd.c > index 6f0f05466917..ccbf9885a52b 100644 > --- a/drivers/mmc/host/uniphier-sd.c > +++ b/drivers/mmc/host/uniphier-sd.c > @@ -660,6 +660,7 @@ static int uniphier_sd_remove(struct platform_device *pdev) > > tmio_mmc_host_remove(host); > uniphier_sd_clk_disable(host); > + tmio_mmc_host_free(host); > > return 0; > } > -- > 2.27.0 >
WARNING: multiple messages have this Message-ID (diff)
From: Ulf Hansson <ulf.hansson@linaro.org> To: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>, "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@renesas.com>, Emil Renner Berthing <kernel@esmil.dk>, Doug Anderson <dianders@chromium.org>, Masahiro Yamada <yamada.masahiro@socionext.com>, Linux ARM <linux-arm-kernel@lists.infradead.org>, "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/2] mmc: uniphier-sd: Fix a resource leak in the remove function Date: Tue, 2 Mar 2021 11:38:59 +0100 [thread overview] Message-ID: <CAPDyKFozVZ9PR1JeQ6F8Ua-YcdpK-rS9TLDe6BW71avpiF5f4w@mail.gmail.com> (raw) In-Reply-To: <20210220142953.918608-1-christophe.jaillet@wanadoo.fr> On Sat, 20 Feb 2021 at 15:29, Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote: > > A 'tmio_mmc_host_free()' call is missing in the remove function, in order > to balance a 'tmio_mmc_host_alloc()' call in the probe. > This is done in the error handling path of the probe, but not in the remove > function. > > Add the missing call. > > Fixes: 3fd784f745dd ("mmc: uniphier-sd: add UniPhier SD/eMMC controller driver") > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Applied for next and by adding a stable tag, thanks! Kind regards Uffe > --- > drivers/mmc/host/uniphier-sd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/uniphier-sd.c b/drivers/mmc/host/uniphier-sd.c > index 6f0f05466917..ccbf9885a52b 100644 > --- a/drivers/mmc/host/uniphier-sd.c > +++ b/drivers/mmc/host/uniphier-sd.c > @@ -660,6 +660,7 @@ static int uniphier_sd_remove(struct platform_device *pdev) > > tmio_mmc_host_remove(host); > uniphier_sd_clk_disable(host); > + tmio_mmc_host_free(host); > > return 0; > } > -- > 2.27.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-02 11:02 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-20 14:29 [PATCH 2/2] mmc: uniphier-sd: Fix a resource leak in the remove function Christophe JAILLET 2021-02-20 14:29 ` Christophe JAILLET 2021-02-22 11:46 ` Masahiro Yamada 2021-02-22 11:46 ` Masahiro Yamada 2021-03-02 10:38 ` Ulf Hansson [this message] 2021-03-02 10:38 ` Ulf Hansson
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=CAPDyKFozVZ9PR1JeQ6F8Ua-YcdpK-rS9TLDe6BW71avpiF5f4w@mail.gmail.com \ --to=ulf.hansson@linaro.org \ --cc=christophe.jaillet@wanadoo.fr \ --cc=dianders@chromium.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=kernel@esmil.dk \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mmc@vger.kernel.org \ --cc=wsa+renesas@sang-engineering.com \ --cc=yamada.masahiro@socionext.com \ --cc=yoshihiro.shimoda.uh@renesas.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: linkBe 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.