diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-17 16:17:34 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-06-18 13:24:23 +0200 |
commit | 5ba7821bcf7d82e35582fce8fe65cd160a6954b4 (patch) | |
tree | 18d2f6410baa811f3b5e8273f5309034bf644788 /drivers/edac | |
parent | 5d7f7d1d5e01c22894dee7c9c9266500478dca99 (diff) |
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 <gustavoars@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200617211734.GA9636@embeddedor
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions