Commit d6f75d86 authored by Yu Jiaoliang's avatar Yu Jiaoliang Committed by Paolo Abeni
Browse files

nfp: bpf: 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>
Signed-off-by: default avatarLouis Peens <louis.peens@corigine.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240821081447.12430-1-yujiaoliang@vivo.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 812a2751
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment