diff options
author | 2022-02-07 23:50:48 +0100 | |
---|---|---|
committer | 2022-02-08 15:55:05 +0000 | |
commit | 98b64741d61124a12fb05a7595acb1fd6c1dc55d (patch) | |
tree | 8e1989026ee6aea4cd4ed24b3fedd4186cb3f818 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | Linux 5.17-rc2 (diff) | |
download | wireguard-linux-98b64741d61124a12fb05a7595acb1fd6c1dc55d.tar.xz wireguard-linux-98b64741d61124a12fb05a7595acb1fd6c1dc55d.zip |
iommu/arm-smmu-v3: Avoid open coded arithmetic in memory allocation
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().
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/3f7b9b202c6b6f5edc234ab7af5f208fbf8bc944.1644274051.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions