diff options
author | Christophe JAILLET <[email protected]> | 2023-12-09 13:36:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-12-15 17:27:04 +0100 |
commit | bda910d81843228c18d1ac51af6b149f2e8261c7 (patch) | |
tree | 2feef0e5e55d1da1123b9042835a003ca128bdc6 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | c49739235c426b05539589de2ffde2bbf71ae468 (diff) |
VMCI: Remove handle_arr_calc_size()
Use struct_size() instead of handle_arr_calc_size().
This is much more conventional.
While at it, use size_add() when computing the needed size in
vmci_handle_arr_append_entry(). This prevents from (unlikely) overflow
when computing the new size to reallocate.
Suggested-by: Kees Cook <[email protected]>
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/84e7f2d8e7c4c2eab68f958307d56546978f76e3.1702125347.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions