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 A1040C388F7 for ; Tue, 3 Nov 2020 11:59:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40318223BF for ; Tue, 3 Nov 2020 11:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604404799; bh=LSXIrHR623Q0Gv2kAMdHrSw0drKMy1Jicy/+Cx7zMOg=; h=Subject:To:Cc:From:Date:List-ID:From; b=cEqXZRBKcCxuf9d7HQUqx15D6lE6XAfbX2WXLq5gDaI57P6U1cw1cGxXacT4pfnvw GDClenByty/ue7eP7h/JFFrcAuASYtNlkgRYRWRCKsLfBQppQCT4z0nE/pOAP3QgWt fVpYKF1JN4dwEqNR6a1Zc9yY1b7YwrLdH/y3s7oA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728710AbgKCL76 (ORCPT ); Tue, 3 Nov 2020 06:59:58 -0500 Received: from wforward4-smtp.messagingengine.com ([64.147.123.34]:56923 "EHLO wforward4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbgKCL76 (ORCPT ); Tue, 3 Nov 2020 06:59:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.west.internal (Postfix) with ESMTP id B01A5B5D; Tue, 3 Nov 2020 06:59:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 03 Nov 2020 06:59:57 -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=E9rDgx q769rcKsvLPoyvqCZSZrtFzEubL9eVxbFfs+8=; b=J70lF+xb2zCPnmrSzm3JwD hDEoTKckIjV9Tdr3yyP5ynfwV2G4A9MSBtzmXwjRA7yCgSixSuCRbXLK0MdDK4NK MKgkmoshTwyeLBDHwQbUFbKClmNedNh2VSWe7/e7h1S/wtvjuF8tDQ0kOg2LhBnK tHOoG9HSIoCf7OJzGydBLHnrHUnL0pVjbP8XTqmcjqtpFZj2G6qr+td2rLk+v4DA v1LdZRoAi6wd+OtqX3mRa1so073Uky9pJbwvuPq4hr/4eoBv6cMvdgabmO9EmnQb XFCgw1J/byPq++N3vRrB+xohO1Jpuv/HJn2qXvyQnHNk2D5AHGMwiqPxkoQf0mSw == 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 D53513280067; Tue, 3 Nov 2020 06:59:56 -0500 (EST) Subject: FAILED: patch "[PATCH] ACPI: configfs: Add missing config_item_put() to fix refcount" failed to apply to 4.19-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: <160440483954126@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.19-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 = {