From patchwork Mon Dec 14 03:24:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Rui X-Patchwork-Id: 67180 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBE3ML8P003742 for ; Mon, 14 Dec 2009 03:22:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932181AbZLNDWU (ORCPT ); Sun, 13 Dec 2009 22:22:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932187AbZLNDWU (ORCPT ); Sun, 13 Dec 2009 22:22:20 -0500 Received: from mga14.intel.com ([143.182.124.37]:26230 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbZLNDWT (ORCPT ); Sun, 13 Dec 2009 22:22:19 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 13 Dec 2009 19:22:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208";a="222400501" Received: from rzhang1-desktop.sh.intel.com (HELO [10.239.36.117]) ([10.239.36.117]) by azsmga001.ch.intel.com with ESMTP; 13 Dec 2009 19:22:17 -0800 Subject: [PATCH] ACPI: add kernel tainting after overriding an ACPI control method From: Zhang Rui To: Len Brown Cc: "linux-acpi@vger.kernel.org" , Thomas Renninger , "Zhang, Rui" Date: Mon, 14 Dec 2009 11:24:18 +0800 Message-ID: <1260761058.27069.329.camel@rzhang1-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Index: linux-2.6/drivers/acpi/debug.c =================================================================== --- linux-2.6.orig/drivers/acpi/debug.c +++ linux-2.6/drivers/acpi/debug.c @@ -239,6 +239,7 @@ static ssize_t cm_write(struct file *fil kfree(buf); if (ACPI_FAILURE(status)) return -EINVAL; + add_taint(TAINT_OVERRIDDEN_ACPI_TABLE); } return count;