Commit 4bab30a0 authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown

ACPI: add kernel tainting after overriding an ACPI control method

Add kernel tainting after overriding an ACPI control method successfully.
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent a1a541d8
...@@ -239,6 +239,7 @@ static ssize_t cm_write(struct file *file, const char __user *user_buf, ...@@ -239,6 +239,7 @@ static ssize_t cm_write(struct file *file, const char __user *user_buf,
kfree(buf); kfree(buf);
if (ACPI_FAILURE(status)) if (ACPI_FAILURE(status))
return -EINVAL; return -EINVAL;
add_taint(TAINT_OVERRIDDEN_ACPI_TABLE);
} }
return count; return count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment