Commit 175086cf authored by Yan Zhen's avatar Yan Zhen Committed by Miquel Raynal
Browse files

mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation



When we are allocating an array, using kmemdup_array() to take care about
multiplication and possible overflows.

Also it makes auditing the code easier.

Signed-off-by: default avatarYan Zhen <yanzhen@vivo.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240823110824.3895787-1-yanzhen@vivo.com
parent e334c01d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment