From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA5A6C2D0A3 for ; Tue, 3 Nov 2020 11:59:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78177223BF for ; Tue, 3 Nov 2020 11:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604404797; bh=z14d/s7+9d03r8f8SfLO6/clCTudy6U3EfbcIPJ1qfY=; h=Subject:To:Cc:From:Date:List-ID:From; b=ZJBsbD6NbwRMv6lMdV4GAHUr0CzbCNQ+HVgGvcNXROcRm6VOzVARiXgw3i3Dtx6tf HR7jRB0dv3uifnzVtjGTCYSXxBj17kq/ghtBSXCs3s5d/DIuETOBwCffvQr2QlC+tz /zwjhH8oRTI+EuNJRp7bot/1TnnwJgCAa76nYICI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbgKCL75 (ORCPT ); Tue, 3 Nov 2020 06:59:57 -0500 Received: from wforward4-smtp.messagingengine.com ([64.147.123.34]:34453 "EHLO wforward4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728710AbgKCL74 (ORCPT ); Tue, 3 Nov 2020 06:59:56 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.west.internal (Postfix) with ESMTP id EECACC66; Tue, 3 Nov 2020 06:59:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 03 Nov 2020 06:59:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=d7/9Hk d8Xp6z+7vt+wyTtfxbLP2wSWkCeYSPPbulklQ=; b=r8GpO96qufdTKVD9gms9N0 6do4fdbEal39GBYrelWTNyStsTDKNnT0Al+ouLUsUqJPF+dlyFrRqtD4LKJSrr5x T4r8HK7XBWE2XzFxiXg9n+b2WF36Uz+fdHINNXFUPNuIha707CwoYwVHxF63dM+7 O9aiPL9g4+n92v3xh2xTznHKm8H9l7U/UvaYbgoH+PRt1mdo1y7ca3zwwsRg6AXs QT7KTximNfMK+AZ9qqBek2OhN2a8Y2yiC0XAGPv4cO+GrrbfafIl2sBCD1KulTIM 6elWPwkHX1WaUku0owonpMYLx32mnOPP5aNfdhlCJbeIqyGss5gHsZOSjdu2Ssaw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtfedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdejgedrieegnecuvehluhhsthgv rhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd gtohhm X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 1EC793064674; Tue, 3 Nov 2020 06:59:55 -0500 (EST) Subject: FAILED: patch "[PATCH] ACPI: configfs: Add missing config_item_put() to fix refcount" failed to apply to 4.14-stable tree To: guohanjun@huawei.com, rafael.j.wysocki@intel.com, stable@vger.kernel.org Cc: From: Date: Tue, 03 Nov 2020 13:00:39 +0100 Message-ID: <160440483911641@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.14-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9a2e849fb6de471b82d19989a7944d3b7671793c Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Fri, 18 Sep 2020 17:13:28 +0800 Subject: [PATCH] ACPI: configfs: Add missing config_item_put() to fix refcount leak config_item_put() should be called in the drop_item callback, to decrement refcount for the config item. Fixes: 772bf1e2878ec ("ACPI: configfs: Unload SSDT on configfs entry removal") Signed-off-by: Hanjun Guo [ rjw: Subject edit ] Cc: 4.13+ # 4.13+ Signed-off-by: Rafael J. Wysocki diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index 88c8af455ea3..cf91f49101ea 100644 --- a/drivers/acpi/acpi_configfs.c +++ b/drivers/acpi/acpi_configfs.c @@ -228,6 +228,7 @@ static void acpi_table_drop_item(struct config_group *group, ACPI_INFO(("Host-directed Dynamic ACPI Table Unload")); acpi_unload_table(table->index); + config_item_put(cfg); } static struct configfs_group_operations acpi_table_group_ops = {