diff options
| author | 2024-08-23 19:08:24 +0800 | |
|---|---|---|
| committer | 2024-08-23 19:25:51 +0200 | |
| commit | 175086cf4acdf4ccd3d7a6bb5c5231ececd6656b (patch) | |
| tree | 55d44283b9dbab79a433eff78a0d69435a911d46 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | mtd: parsers: bcm47xxpart: make read-only array possible_nvram_sizes static const (diff) | |
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: Yan Zhen <yanzhen@vivo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240823110824.3895787-1-yanzhen@vivo.com
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
