Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1521975
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell |
| Date | 2016-11-14 19:30 +0100 |
| Message-ID | <sDub0-28T-33@gated-at.bofh.it> (permalink) |
| References | <syEE2-7uL-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 01 Nov 2016, Johan Hovold wrote:
> Make sure to drop the reference taken by bus_find_device_by_name()
> before returning from mfd_clone_cell().
>
> Fixes: a9bbba996302 ("mfd: add platform_device sharing support for mfd")
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
> drivers/mfd/mfd-core.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
> diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
> index 3ac486a597f3..c57e407020f1 100644
> --- a/drivers/mfd/mfd-core.c
> +++ b/drivers/mfd/mfd-core.c
> @@ -399,6 +399,8 @@ int mfd_clone_cell(const char *cell, const char **clones, size_t n_clones)
> clones[i]);
> }
>
> + put_device(dev);
> +
> return 0;
> }
> EXPORT_SYMBOL(mfd_clone_cell);
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell Lee Jones <lee.jones@linaro.org> - 2016-11-14 19:30 +0100
Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell Johan Hovold <johan@kernel.org> - 2016-11-16 10:20 +0100
Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell Lee Jones <lee.jones@linaro.org> - 2016-11-16 11:00 +0100
Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell Johan Hovold <johan@kernel.org> - 2016-11-16 11:10 +0100
Re: [PATCH] mfd: core: fix device reference leak in mfd_clone_cell Lee Jones <lee.jones@linaro.org> - 2016-11-16 16:20 +0100
csiph-web