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 D71DCC2D0A3 for ; Tue, 3 Nov 2020 11:59:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8325E223BF for ; Tue, 3 Nov 2020 11:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604404787; bh=sSJ8kqfRRPDm7lgjn9aULvffxS+f6ijv/wo3LJcX8UQ=; h=Subject:To:Cc:From:Date:List-ID:From; b=T6xDsH/BHIF2F4C5TXkZNv9vhPSxuFigNwSjluyndB3gHW0m8bxpdxCv4H+xbUx5v hc378a5Sglo498VdCR0jgdv3kjY+scvmDufVYicVtsNuacQBR36Fj97lOkMXAZxOeT 5N3E1VWokoSCFWdJJ0FNdWpt9NwFt0NF6NvM4UvY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbgKCL7r (ORCPT ); Tue, 3 Nov 2020 06:59:47 -0500 Received: from wforward4-smtp.messagingengine.com ([64.147.123.34]:52683 "EHLO wforward4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbgKCL7q (ORCPT ); Tue, 3 Nov 2020 06:59:46 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.west.internal (Postfix) with ESMTP id D0C72BEF; Tue, 3 Nov 2020 06:59:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 03 Nov 2020 06:59:46 -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=VS/4WR QTPynuuBbkDI9yX84us/g9DNUWBnw3eNgTmFM=; b=ke0WXy/Q/jpy5g0UBI1lj2 3zt5QFyXjwGWrb4YOR8X6IbeegxVc86LMM6aF015J7Z1hKdPX/GL/TTH46qyYbjj FwTeVY+geSkPpSetCGeHiBWrmkzSjmXEV+FBRIC32GD0d1rqlG1CJBnPCMEK2R2n D3IxtAEvvxDMoMKGzuFEUmmuSeK711XRWEfH51/TkBQHOTPAmOXfA9FVjHLmJfrU OU6O1aDJ84JbCvr8C3+rwIyoSMjjNA6jYSdXpEgmkx3sp0p1fuyQEkaRFd0deaR0 nCibSilLOTdyMWQg7OMX+KrEQbK6g9zK9q+SxKFpoNUopzy6fkG9jZ0vqVYmVcFQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtfedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdejgedrieegnecuvehluhhsthgv rhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd 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 DA8123280060; Tue, 3 Nov 2020 06:59:44 -0500 (EST) Subject: FAILED: patch "[PATCH] ACPI: configfs: Add missing config_item_put() to fix refcount" failed to apply to 5.4-stable tree To: guohanjun@huawei.com, rafael.j.wysocki@intel.com, stable@vger.kernel.org Cc: From: Date: Tue, 03 Nov 2020 13:00:38 +0100 Message-ID: <1604404838203157@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 5.4-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 = {