EDAC/pci: Get rid of the silly one-shot memory allocation in edac_pci_alloc_ctl_info()
authorBorislav Petkov <bp@suse.de>
Tue, 8 Mar 2022 07:37:11 +0000 (08:37 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 11 Apr 2022 09:38:10 +0000 (11:38 +0200)
commitfb8cd45ca39bdb216e358e36063d8b9962242107
tree698192a3f4e0275c6dc642bc8fcf3cbb87c79cce
parent0bbb265f7089584aaa6d440805ca75ea4f3930d4
EDAC/pci: Get rid of the silly one-shot memory allocation in edac_pci_alloc_ctl_info()

Use boring kzalloc() instead.

There should be no functional changes resulting from this.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220310095254.1510-3-bp@alien8.de
drivers/edac/edac_pci.c