mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
nvme: Report only the unknown bits
When we get a smart error that's unknown, report only the unknown (reserved) bits of the Critical Warning Bitfield. Sponsored by: Netflix
This commit is contained in:
parent
f19875b66b
commit
c5246cb7b0
@ -650,7 +650,8 @@ nvme_ctrlr_log_critical_warnings(struct nvme_controller *ctrlr,
|
||||
|
||||
if (state & NVME_CRIT_WARN_ST_RESERVED_MASK)
|
||||
nvme_ctrlr_devctl_log(ctrlr, "critical",
|
||||
"unknown critical warning(s): state = 0x%02x", state);
|
||||
"unknown critical warning(s): state = 0x%02x",
|
||||
state & NVME_CRIT_WARN_ST_RESERVED_MASK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user