From patchwork Thu Jul 1 08:29:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 109019 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o618Tu1M032428 for ; Thu, 1 Jul 2010 08:29:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838Ab0GAI3K (ORCPT ); Thu, 1 Jul 2010 04:29:10 -0400 Received: from mga11.intel.com ([192.55.52.93]:52873 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170Ab0GAI3I (ORCPT ); Thu, 1 Jul 2010 04:29:08 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 01 Jul 2010 01:28:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,518,1272870000"; d="scan'208";a="581752823" Received: from yhuang-dev.sh.intel.com ([10.239.13.161]) by fmsmga002.fm.intel.com with ESMTP; 01 Jul 2010 01:28:49 -0700 From: Huang Ying To: Len Brown Cc: linux-kernel@vger.kernel.org, Andi Kleen , linux-acpi@vger.kernel.org, Huang Ying Subject: [BUGFIX 1/2] ACPI, APEI, Fix a typo of error path of apei_resources_request Date: Thu, 1 Jul 2010 16:29:02 +0800 Message-Id: <1277972943-1475-2-git-send-email-ying.huang@intel.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1277972943-1475-1-git-send-email-ying.huang@intel.com> References: <1277972943-1475-1-git-send-email-ying.huang@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 01 Jul 2010 08:29:56 +0000 (UTC) --- a/drivers/acpi/apei/apei-base.c +++ b/drivers/acpi/apei/apei-base.c @@ -481,14 +481,14 @@ err_unmap_ioport: list_for_each_entry(res, &resources->ioport, list) { if (res == res_bak) break; - release_mem_region(res->start, res->end - res->start); + release_region(res->start, res->end - res->start); } res_bak = NULL; err_unmap_iomem: list_for_each_entry(res, &resources->iomem, list) { if (res == res_bak) break; - release_region(res->start, res->end - res->start); + release_mem_region(res->start, res->end - res->start); } return -EINVAL; }