x86/mce/amd: Protect a not-fully initialized bank from the thresholding interrupt
authorThomas Gleixner <tglx@linutronix.de>
Thu, 12 Mar 2020 19:05:43 +0000 (20:05 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:47:55 +0000 (15:47 +0200)
commitcca9cc05fe98f3eb0cfb58ec6739cfc9d0b4ccbf
treeea347516f86febe7708aefc5d922e9b49ab5101f
parentc9bf318f77b3a78483e656e609d005c52aadc86d
x86/mce/amd: Protect a not-fully initialized bank from the thresholding interrupt

Make sure the thresholding bank descriptor is fully initialized when the
thresholding interrupt fires after a hotplug event.

 [ bp: Write commit message and document long-forgotten bank_map. ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200403161943.1458-4-bp@alien8.de
arch/x86/kernel/cpu/mce/amd.c