Gustavo A. R. Silva 5ba7821bcf 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
2020-06-18 13:24:23 +02:00
..
2020-06-01 13:57:51 -07:00
2020-06-11 15:54:31 -07:00
2020-06-11 15:15:23 +02:00
2019-07-22 12:00:51 +02:00
2020-06-11 15:54:31 -07:00