]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mca: Handle inconsistent CMCI capability reporting
authorMark Johnston <markj@FreeBSD.org>
Mon, 8 Feb 2021 19:42:54 +0000 (14:42 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 8 Feb 2021 19:42:54 +0000 (14:42 -0500)
commitb5770470276268acef21368b3e77a325df883500
treec00698e80457d573ca42809f834b78d8bd78bc62
parent7da3bfc20ca8aca8177b677cba37c9f52714605c
mca: Handle inconsistent CMCI capability reporting

A BIOS bug may apparently cause the BSP to report that it does not
implement CMCI, with some APs reporting that they do.  In this scenario,
avoid a NULL pointer dereference that occurs in cmci_monitor() because
cmc_state was not allocated by the BSP.

PR: 253272
Reported by: asomers, mmacy
Reviewed by: kib (previous version)
MFC after: 1 week
sys/x86/x86/mca.c