mirror of https://gitee.com/openkylin/linux.git
ACPI: add kernel tainting after overriding an ACPI control method
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>
This commit is contained in:
parent
a1a541d86f
commit
4bab30a041
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue