aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/netkit.c
diff options
context:
space:
mode:
authorShen Lichuan <shenlichuan@vivo.com>2024-08-27 15:21:15 +0800
committerJohannes Berg <johannes.berg@intel.com>2024-08-27 10:28:56 +0200
commitd07e1f5c745058d1805e7d8042b9a326b120cb6e (patch)
treec5941072c9bf6c32512349261a817f4a06698e05 /drivers/net/netkit.c
parentwifi: cfg80211: Use kmemdup_array instead of kmemdup for multiple allocation (diff)
downloadwireguard-linux-d07e1f5c745058d1805e7d8042b9a326b120cb6e.tar.xz
wireguard-linux-d07e1f5c745058d1805e7d8042b9a326b120cb6e.zip
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: Shen Lichuan <shenlichuan@vivo.com> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Link: https://patch.msgid.link/20240827072115.42680-1-shenlichuan@vivo.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions