aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSimon Horman <[email protected]>2024-07-08 08:27:19 +0100
committerJakub Kicinski <[email protected]>2024-07-09 11:14:47 -0700
commit0d9e699d3421b5db83eb0cb7a708882440ee78ef (patch)
tree5da251328712ae25a3d4fbb528e8137eb5bbe64c /tools/perf/scripts/python
parent3699e57aae8817b232c311229ab531ee0ec39fc8 (diff)
net: tls: Pass union tls_crypto_context pointer to memzero_explicit
Pass union tls_crypto_context pointer, rather than struct tls_crypto_info pointer, to memzero_explicit(). The address of the pointer is the same before and after. But the new construct means that the size of the dereferenced pointer type matches the size being zeroed. Which aids static analysis. As reported by Smatch: .../tls_main.c:842 do_tls_setsockopt_conf() error: memzero_explicit() 'crypto_info' too small (4 vs 56) No functional change intended. Compile tested only. Reviewed-by: Przemek Kitszel <[email protected]> Signed-off-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions