diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2022-11-14 17:02:06 -0600 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2022-11-22 12:13:47 +0200 |
| commit | f0e0897b4c7eb590581463125c553bd6bb029808 (patch) | |
| tree | 765ed537132fc2bd904e5f8b9008a9b793b4ea11 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | 61b0853d0314a474f9135537ebf96ef85a7216df (diff) | |
wifi: brcmfmac: Use struct_size() and array_size() in code ralated to struct brcmf_gscan_config
Prefer struct_size() over open-coded versions of idiom:
sizeof(struct-with-flex-array) + sizeof(typeof-flex-array-elements) * count
where count is the max number of items the flexible array is supposed to
contain.
Also, use array_size() in call to memcpy().
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/de0226a549c8d000d8974e207ede786220a3df1a.1668466470.git.gustavoars@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions
