Re: [PATCH][next] dmaengine: hisilicon: Use struct_size() in devm_kzalloc()

From: Vinod Koul
Date: Wed Jun 24 2020 - 01:56:45 EST


On 17-06-20, 16:11, Gustavo A. R. Silva wrote:
> Make use of the struct_size() helper instead of an open-coded version
> in order to avoid any potential type mistakes.
>
> This code was detected with the help of Coccinelle and, audited and
> fixed manually.

Applied, thanks

--
~Vinod