diff options
author | 2024-01-05 08:39:59 -0800 | |
---|---|---|
committer | 2024-02-01 10:06:42 -0800 | |
commit | e03d4910e6e45cb49f630258e870b08f2ee34e7a (patch) | |
tree | 09c2b0d2788cae483561eb89b52b4bc62e29a4d7 /include/linux/string_choices.h | |
parent | cap_syslog: remove CAP_SYS_ADMIN when dmesg_restrict (diff) | |
download | wireguard-linux-e03d4910e6e45cb49f630258e870b08f2ee34e7a.tar.xz wireguard-linux-e03d4910e6e45cb49f630258e870b08f2ee34e7a.zip |
VMCI: Use struct_size() in kmalloc()
Use struct_size() instead of open coding.
Suggested-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20240105164001.2129796-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/string_choices.h')
0 files changed, 0 insertions, 0 deletions