diff mbox

ACPI: add kernel tainting after overriding an ACPI control method

Message ID 1260761058.27069.329.camel@rzhang1-desktop (mailing list archive)
State Accepted
Headers show

Commit Message

Zhang Rui Dec. 14, 2009, 3:24 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6/drivers/acpi/debug.c
===================================================================
--- linux-2.6.orig/drivers/acpi/debug.c
+++ linux-2.6/drivers/acpi/debug.c
@@ -239,6 +239,7 @@  static ssize_t cm_write(struct file *fil
 		kfree(buf);
 		if (ACPI_FAILURE(status))
 			return -EINVAL;
+		add_taint(TAINT_OVERRIDDEN_ACPI_TABLE);
 	}
 
 	return count;