summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimon Horman <horms@kernel.org>2024-07-08 10:27:19 +0300
committerJakub Kicinski <kuba@kernel.org>2024-07-09 21:14:47 +0300
commit0d9e699d3421b5db83eb0cb7a708882440ee78ef (patch)
tree5da251328712ae25a3d4fbb528e8137eb5bbe64c /scripts
parent3699e57aae8817b232c311229ab531ee0ec39fc8 (diff)
downloadlinux-0d9e699d3421b5db83eb0cb7a708882440ee78ef.tar.xz
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 <przemyslaw.kitszel@intel.com> Signed-off-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240708-tls-memzero-v2-1-9694eaf31b79@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions