[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164433570600.932619.3193725963159387011.b4-ty@kernel.org>
Date: Tue, 8 Feb 2022 16:21:51 +0000
From: Will Deacon <will@...nel.org>
To: Joerg Roedel <joro@...tes.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Robin Murphy <robin.murphy@....com>
Cc: catalin.marinas@....com, kernel-team@...roid.com,
Will Deacon <will@...nel.org>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2 1/2] iommu/arm-smmu-v3: Avoid open coded arithmetic in memory allocation
On Mon, 7 Feb 2022 23:50:48 +0100, Christophe JAILLET wrote:
> kmalloc_array()/kcalloc() should be used to avoid potential overflow when
> a multiplication is needed to compute the size of the requested memory.
>
> So turn a devm_kzalloc()+explicit size computation into an equivalent
> devm_kcalloc().
>
>
> [...]
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/2] iommu/arm-smmu-v3: Avoid open coded arithmetic in memory allocation
https://git.kernel.org/will/c/98b64741d611
[2/2] iommu/arm-smmu-v3: Simplify memory allocation
https://git.kernel.org/will/c/fcdeb8c34043
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Powered by blists - more mailing lists