Commit 32bf7729 authored by Yu Jiaoliang's avatar Yu Jiaoliang Committed by Johannes Berg
Browse files

wifi: cfg80211: Use kmemdup_array instead of kmemdup for multiple allocation



Let the kememdup_array() take care about multiplication and possible
overflows.

Signed-off-by: default avatarYu Jiaoliang <yujiaoliang@vivo.com>
Reviewed-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/20240822074743.1366561-1-yujiaoliang@vivo.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 76364f3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment