ACPI: add kernel tainting after overriding an ACPI control method
authorZhang Rui <rui.zhang@intel.com>
Mon, 14 Dec 2009 03:24:18 +0000 (11:24 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 03:52:19 +0000 (22:52 -0500)
Add kernel tainting after overriding an ACPI control method successfully.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/debug.c

index 0bedd15..cc421b7 100644 (file)
@@ -239,6 +239,7 @@ static ssize_t cm_write(struct file *file, const char __user *user_buf,
                kfree(buf);
                if (ACPI_FAILURE(status))
                        return -EINVAL;
+               add_taint(TAINT_OVERRIDDEN_ACPI_TABLE);
        }
 
        return count;