[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <171341720530.758041.12615273224606101090.b4-ty@kernel.org>
Date: Thu, 18 Apr 2024 10:43:25 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Kees Cook <keescook@...omium.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Erick Archer <erick.archer@...look.com>
Cc: dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2] dmaengine: pl08x: Use kcalloc() instead of
kzalloc()
On Sat, 30 Mar 2024 16:23:23 +0100, Erick Archer wrote:
> This is an effort to get rid of all multiplications from allocation
> functions in order to prevent integer overflows [1].
>
> Here the multiplication is obviously safe because the "channels"
> member can only be 8 or 2. This value is set when the "vendor_data"
> structs are initialized.
>
> [...]
Applied, thanks!
[1/1] dmaengine: pl08x: Use kcalloc() instead of kzalloc()
commit: 98f2233a5c20ca567b2db1147278fd110681b9ed
Best regards,
--
~Vinod
Powered by blists - more mailing lists