aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorÉric Piel <Eric.Piel@tremplin-utc.net>2008-02-04 18:04:50 -0500
committerLen Brown <len.brown@intel.com>2008-02-06 22:07:51 -0500
commit6ed31e92e94830c138fbd470486383380710069a (patch)
tree76d74ac2cc7637fca6462727b273cf0c14e24da8 /drivers/acpi/osl.c
parent71fc47a9adf8ee89e5c96a47222915c5485ac437 (diff)
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 <eric.piel@tremplin-utc.net> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 131936e7ff17..bbd8360bfb23 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -392,6 +392,13 @@ acpi_os_table_override(struct acpi_table_header * existing_table,
392 *new_table = initrd_table; 392 *new_table = initrd_table;
393 } 393 }
394#endif 394#endif
395 if (*new_table != NULL) {
396 printk(KERN_WARNING PREFIX "Override [%4.4s-%8.8s], "
397 "this is unsafe: tainting kernel\n",
398 existing_table->signature,
399 existing_table->oem_table_id);
400 add_taint(TAINT_OVERRIDDEN_ACPI_TABLE);
401 }
395 return AE_OK; 402 return AE_OK;
396} 403}
397 404