Commit d07e1f5c authored by Shen Lichuan's avatar Shen Lichuan Committed by Johannes Berg
Browse files

wifi: mac80211: use kmemdup_array instead of kmemdup for multiple allocation



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

Using kmemdup_array() is more appropriate and makes the code
easier to audit.

Signed-off-by: default avatarShen Lichuan <shenlichuan@vivo.com>
Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20240827072115.42680-1-shenlichuan@vivo.com


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