linux/Documentation/translations
Erick Archer 9ac3ebaef3 Documentation: power: Use kcalloc() instead of kzalloc()
As noted in the "Deprecated Interfaces, Language Features, Attributes,
and Conventions" documentation [1], size calculations (especially
multiplication) should not be performed in memory allocator (or similar)
function arguments due to the risk of them overflowing. This could lead
to values wrapping around and a smaller allocation being made than the
caller was expecting. Using those allocations could lead to linear
overflows of heap memory and other misbehaviors.

So, in the example code use the purpose specific kcalloc() function
instead of the argument size * count in the kzalloc() function.

At the same time, modify the translations accordingly.

Signed-off-by: Erick Archer <erick.archer@gmx.com>
Reviewed-by: Hu Haowen <2023002089@link.tyut.edu.cn>
Reviewed-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Hu Haowen <2023002089@link.tyut.edu.cn>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2024-01-23 11:40:42 +05:30
..
it_IT Merge branch 'vegard' into docs-mw 2023-11-17 13:07:51 -07:00
ja_JP docs: submit-checklist: remove all of "make namespacecheck" 2023-12-29 12:22:27 -08:00
ko_KR Documentation/security-bugs: move from admin-guide/ to process/ 2023-03-12 15:56:43 +01:00
sp_SP docs/sp_SP: Move howto.rst into /sp_SP/process/ 2023-12-15 08:57:24 -07:00
zh_CN Documentation: power: Use kcalloc() instead of kzalloc() 2024-01-23 11:40:42 +05:30
zh_TW A handful of late-arriving documentation fixes. 2024-01-17 11:49:11 -08:00
index.rst Documentation: Start translations to Spanish 2022-11-01 16:58:29 -06:00