[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 4 Apr 2022 19:08:14 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Alim Akhtar <alim.akhtar@...sung.com>,
Lukasz Luba <lukasz.luba@....com>,
Krzysztof Kozlowski <krzk@...nel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
linux-samsung-soc@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] memory: samsung: exynos5422-dmc: Avoid some over memory allocation
On Sun, 20 Mar 2022 08:10:30 +0100, Christophe JAILLET wrote:
> 'dmc->counter' is a 'struct devfreq_event_dev **', so there is some
> over memory allocation. 'counters_size' should be computed with
> 'sizeof(struct devfreq_event_dev *)'.
>
> Use 'sizeof(*dmc->counter)' instead to fix it.
>
> While at it, use devm_kcalloc() instead of devm_kzalloc()+open coded
> multiplication.
>
> [...]
Applied, thanks!
[1/1] memory: samsung: exynos5422-dmc: Avoid some over memory allocation
commit: 56653827f0d7bc7c2d8bac0e119fd1521fa9990a
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Powered by blists - more mailing lists