diff options
author | Yu Jiaoliang <yujiaoliang@vivo.com> | 2024-08-21 16:14:45 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-08-22 15:12:02 +0200 |
commit | d6f75d86aa786740ef7a7607685e9e1039e30aab (patch) | |
tree | 642afa4be88deaa9ac28832ea34c65e6182db02f /scripts/generate_rust_analyzer.py | |
parent | 812a2751e827fa1eb01f3bd268b4d74c23f4226a (diff) | |
download | lwn-d6f75d86aa786740ef7a7607685e9e1039e30aab.tar.gz lwn-d6f75d86aa786740ef7a7607685e9e1039e30aab.zip |
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: Yu Jiaoliang <yujiaoliang@vivo.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240821081447.12430-1-yujiaoliang@vivo.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions