aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2020-06-17 21:17:34 +0000
committerBorislav Petkov <[email protected]>2020-06-18 11:24:23 +0000
commit5ba7821bcf7d82e35582fce8fe65cd160a6954b4 (patch)
tree18d2f6410baa811f3b5e8273f5309034bf644788 /scripts/gcc-plugins/sancov_plugin.c
parentx86/mce/inject: Fix a wrong assignment of i_mce.status (diff)
downloadkernel-5ba7821bcf7d82e35582fce8fe65cd160a6954b4.tar.gz
kernel-5ba7821bcf7d82e35582fce8fe65cd160a6954b4.zip
x86/mce/dev-mcelog: Use struct_size() helper in kzalloc()
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. This code was detected with the help of Coccinelle and, audited and fixed manually. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Tony Luck <[email protected]> Link: https://lkml.kernel.org/r/20200617211734.GA9636@embeddedor
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions