mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI: Taint kernel on ACPI table override (format corrected)
When an ACPI table is overridden (for now this can happen only for DSDT) display a big warning and taint the kernel with flag A. Signed-off-by: Eric Piel <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
71fc47a9ad
commit
6ed31e92e9
3 changed files with 11 additions and 2 deletions
|
|
@ -392,6 +392,13 @@ acpi_os_table_override(struct acpi_table_header * existing_table,
|
|||
*new_table = initrd_table;
|
||||
}
|
||||
#endif
|
||||
if (*new_table != NULL) {
|
||||
printk(KERN_WARNING PREFIX "Override [%4.4s-%8.8s], "
|
||||
"this is unsafe: tainting kernel\n",
|
||||
existing_table->signature,
|
||||
existing_table->oem_table_id);
|
||||
add_taint(TAINT_OVERRIDDEN_ACPI_TABLE);
|
||||
}
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue