From patchwork Thu Mar 12 07:45:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 11282 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2C7l3BR002803 for ; Thu, 12 Mar 2009 07:47:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973AbZCLHqt (ORCPT ); Thu, 12 Mar 2009 03:46:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751529AbZCLHqt (ORCPT ); Thu, 12 Mar 2009 03:46:49 -0400 Received: from mga03.intel.com ([143.182.124.21]:62413 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497AbZCLHqs (ORCPT ); Thu, 12 Mar 2009 03:46:48 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 12 Mar 2009 00:46:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.38,349,1233561600"; d="scan'208";a="119452242" Received: from unknown (HELO localhost.localdomain) ([143.185.76.212]) by azsmga001.ch.intel.com with ESMTP; 12 Mar 2009 00:46:13 -0700 Received: from wfg by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1LhfbY-0004Fy-UQ; Thu, 12 Mar 2009 15:45:24 +0800 Date: Thu, 12 Mar 2009 15:45:24 +0800 From: Wu Fengguang To: Andrew Morton Cc: LKML , ACPI Devel Maling List , Rusty Russell , Ingo Molnar , Venkatesh Pallipadi , Len Brown , Zhao Yakui Subject: [PATCH] ACPI: pass correct parameter to acpi_processor_ffh_cstate_probe_cpu() Message-ID: <20090312074524.GA15992@localhost> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This fixes a NULL pointer dereference bug introduced by 6e911954cac. Signed-off-by: Wu Fengguang --- -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c index 6626e8c..b866b87 100644 --- a/arch/x86/kernel/acpi/cstate.c +++ b/arch/x86/kernel/acpi/cstate.c @@ -137,7 +137,7 @@ int acpi_processor_ffh_cstate_probe(unsigned int cpu, /* Run acpi_processor_ffh_cstate_probe_cpu() on the target CPU */ retval = smp_call_function_single(cpu, - acpi_processor_ffh_cstate_probe_cpu, cx, 1); + acpi_processor_ffh_cstate_probe_cpu, &cxcc, 1); if (retval == 0) { retval = cxcc.retval; if (retval == 0) {