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 0bedd1554f2f6708479c6c10656422ffe26e874d..cc421b7ae166c4ffe6a005c73b3f2714a36db2b9 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;