Message ID | 775768b4912531c3b887d405fc51a50e465e1bf9.1678543498.git.lukas@wunner.de (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show
Return-Path: <linux-pci-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 690CEC6FD1F for <linux-pci@archiver.kernel.org>; Sat, 11 Mar 2023 14:58:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbjCKO6d (ORCPT <rfc822;linux-pci@archiver.kernel.org>); Sat, 11 Mar 2023 09:58:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbjCKO6b (ORCPT <rfc822;linux-pci@vger.kernel.org>); Sat, 11 Mar 2023 09:58:31 -0500 Received: from mailout1.hostsharing.net (mailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5fcc:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7771E1E9E8; Sat, 11 Mar 2023 06:58:27 -0800 (PST) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mailout1.hostsharing.net (Postfix) with ESMTPS id 114DC10190FC7; Sat, 11 Mar 2023 15:58:26 +0100 (CET) Received: from localhost (unknown [89.246.108.87]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by h08.hostsharing.net (Postfix) with ESMTPSA id D427C60049B2; Sat, 11 Mar 2023 15:58:25 +0100 (CET) X-Mailbox-Line: From 775768b4912531c3b887d405fc51a50e465e1bf9 Mon Sep 17 00:00:00 2001 Message-Id: <775768b4912531c3b887d405fc51a50e465e1bf9.1678543498.git.lukas@wunner.de> In-Reply-To: <cover.1678543498.git.lukas@wunner.de> References: <cover.1678543498.git.lukas@wunner.de> From: Lukas Wunner <lukas@wunner.de> Date: Sat, 11 Mar 2023 15:40:06 +0100 Subject: [PATCH v4 06/17] PCI/DOE: Fix memory leak with CONFIG_DEBUG_OBJECTS=y To: Bjorn Helgaas <helgaas@kernel.org>, Dan Williams <dan.j.williams@intel.com>, linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org Cc: Gregory Price <gregory.price@memverge.com>, Ira Weiny <ira.weiny@intel.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Alison Schofield <alison.schofield@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Dave Jiang <dave.jiang@intel.com>, "Li, Ming" <ming4.li@intel.com>, Hillf Danton <hdanton@sina.com>, Ben Widawsky <bwidawsk@kernel.org>, Alexey Kardashevskiy <aik@amd.com>, Davidlohr Bueso <dave@stgolabs.net>, linuxarm@huawei.com Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org |
Series |
Collection of DOE material
|
expand
|
diff --git a/drivers/pci/doe.c b/drivers/pci/doe.c index c14ffdf23f87..e5e9b287b976 100644 --- a/drivers/pci/doe.c +++ b/drivers/pci/doe.c @@ -224,6 +224,7 @@ static void signal_task_complete(struct pci_doe_task *task, int rv) { task->rv = rv; task->complete(task); + destroy_work_on_stack(&task->work); } static void signal_task_abort(struct pci_doe_task *task, int rv)