浏览代码

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>
Zhang Rui 15 年之前
父节点
当前提交
4bab30a041
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/acpi/debug.c

+ 1 - 0
drivers/acpi/debug.c

@@ -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;