From patchwork Tue Oct 25 05:21:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lv Zheng X-Patchwork-Id: 9393985 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C93860231 for ; Tue, 25 Oct 2016 05:22:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F37C728D94 for ; Tue, 25 Oct 2016 05:22:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E704228F76; Tue, 25 Oct 2016 05:22:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87A2A28D94 for ; Tue, 25 Oct 2016 05:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757084AbcJYFWG (ORCPT ); Tue, 25 Oct 2016 01:22:06 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:32848 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754787AbcJYFWA (ORCPT ); Tue, 25 Oct 2016 01:22:00 -0400 Received: by mail-oi0-f67.google.com with SMTP id i127so5277560oia.0; Mon, 24 Oct 2016 22:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DACW4MxKmU8ojAqMp7m60NZzUmIP+ONk0Nen4kLfmIw=; b=Nx1YFKK4xWGYTeY3Uv0nMxRf8C/T6tcBgM+M688i2XeX9mnMnsOg9PYGYtV3UYBwLF /wjDivceAchU+C9FDisyRu6PAzyxI3kU0aqfKhUJQgPi78XYlk26v8Y4osaakcmE3KUk PyjXX7XO3MNX9Kmw3Y7B1ecz5jEaol4bZmnIgXkifbSETuEC+XneoWNenVsuFm0LRNH1 WP2sIdrmXcCloCFLDwaTc1W4SBexNjGoJ3fzLHksk5LpxgLapl/EpaUePeOZcAYeptY8 K+5OMCJ+2CEGJznG2aKZPdgGPJLyrwlspkJi2Rxlo0yAiOf3kTXxBDMB1tKn4zhfigwX aFwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DACW4MxKmU8ojAqMp7m60NZzUmIP+ONk0Nen4kLfmIw=; b=aqImNOdXqWa0eIBdS9DbdwcFz+5sxnR0EKVPTHmMOh0FX9b7OGK5sRQ5P1vzSBHG6n 76T+SbRrwHC8tnfHO5F1pOVJkfL1T6KujHXhpZeJW4xxlLBcLGjXk4ADaH/040/uXRlX +d+AdTC9PJML0xNjqvyfavrSjBCTdA6ZkqrUkL6c/zbLhw0KZXwRBZ4OCNdXIJW3kS/K psdceXFqxPM0pDDEyK6X4sWXigARL3Q6dpENgeAi1JpQEHrr6H5GdvKJfvQaIgF2D8OH ZJxPCPlWFhKBP0uEHcVIPjP2oF7/5UgHDptIgs+QoVU5+DOg5PlXIyDXW7rIF50EFtSW gznQ== X-Gm-Message-State: AA6/9RkMPbKfT2DihHM1NbbXTeoxhmEBOY2gUvRlUyrCXwiS/YTY3tr5hh2raAwRtyk6sQ== X-Received: by 10.202.225.68 with SMTP id y65mr23385605oig.90.1477372880422; Mon, 24 Oct 2016 22:21:20 -0700 (PDT) Received: from localhost.localdomain (h3.246.129.40.static.ip.windstream.net. [40.129.246.3]) by smtp.gmail.com with ESMTPSA id i18sm6399825oib.12.2016.10.24.22.21.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 22:21:20 -0700 (PDT) From: Lv Zheng X-Google-Original-From: Lv Zheng To: "Rafael J . Wysocki" , "Rafael J . Wysocki" , Len Brown Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Lv Zheng Subject: [PATCH 2/6] ACPICA: Dispatcher: Fix an unbalanced lock exit path in acpi_ds_auto_serialize_method() Date: Tue, 25 Oct 2016 13:21:16 +0800 Message-Id: <21f8099f4e08fce02e82128e489429fccf9bd4b6.1477372449.git.lv.zheng@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is a lock unbalanced exit path in acpi_ds_initialize_method(), this patch corrects it. Lv Zheng. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/dsmethod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c index c4028a8..5997e59 100644 --- a/drivers/acpi/acpica/dsmethod.c +++ b/drivers/acpi/acpica/dsmethod.c @@ -128,7 +128,7 @@ acpi_ds_auto_serialize_method(struct acpi_namespace_node *node, if (ACPI_FAILURE(status)) { acpi_ds_delete_walk_state(walk_state); acpi_ps_free_op(op); - return_ACPI_STATUS(status); + goto unlock; } walk_state->descending_callback = acpi_ds_detect_named_opcodes;