Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223961/?format=api
{ "id": 2223961, "url": "http://patchwork.ozlabs.org/api/patches/2223961/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260416-eswin-v1-1-a4991725b5ca@gmail.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "name": "Linux PCI development", "link_name": "linux-pci", "list_id": "linux-pci.vger.kernel.org", "list_email": "linux-pci@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260416-eswin-v1-1-a4991725b5ca@gmail.com>", "list_archive_url": null, "date": "2026-04-16T12:30:20", "name": "PCI: eswin: Fix resource leak on dw_pcie_host_init() failure", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "33fdaa60c8ad9a06d901d1d4c5c21b2d893c7be6", "submitter": { "id": 92491, "url": "http://patchwork.ozlabs.org/api/people/92491/?format=api", "name": "Felix Gu", "email": "ustc.gu@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260416-eswin-v1-1-a4991725b5ca@gmail.com/mbox/", "series": [ { "id": 500154, "url": "http://patchwork.ozlabs.org/api/series/500154/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=500154", "date": "2026-04-16T12:30:20", "name": "PCI: eswin: Fix resource leak on dw_pcie_host_init() failure", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500154/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223961/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223961/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-52613-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-pci@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=MqGr4swy;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-52613-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"MqGr4swy\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.49", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxHZZ3lKmz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 22:36:54 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id BCB4E30D2694\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 12:30:30 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D210E3B7B91;\n\tThu, 16 Apr 2026 12:30:27 +0000 (UTC)", "from mail-pj1-f49.google.com (mail-pj1-f49.google.com\n [209.85.216.49])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id B0C7E39B947\n\tfor <linux-pci@vger.kernel.org>; Thu, 16 Apr 2026 12:30:26 +0000 (UTC)", "by mail-pj1-f49.google.com with SMTP id\n 98e67ed59e1d1-35691a231a7so5061860a91.3\n for <linux-pci@vger.kernel.org>; Thu, 16 Apr 2026 05:30:26 -0700 (PDT)", "from junjungu-PC.localdomain ([223.167.147.125])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-36132cd538asm2373787a91.8.2026.04.16.05.30.22\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 16 Apr 2026 05:30:25 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776342627; cv=none;\n b=PBCig3EA+36EWpqouvmfvaTBISzF4mSgaD14m7rSYlPdg5qU+AloRppF37+L2U3pnLz51ezImBu+EljPQ/LBSivSy6NqN2WspXQA2oO4E200hJNEG0HHg5cvXoyLe6a01E6d5uQKQNDlqnLGKjX9Li19TEV4UKNoG+yopZ+GsYM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776342627; c=relaxed/simple;\n\tbh=gxmdeBujeV0jMHCbtCpMQ5fj+WZiF0J1mmGcycJtdpY=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc;\n b=kAvD4CcQA5HEZxMixv5NSmsXsZQ3WMHS3UnnWegIHooRMtXWQ9sl+sXTlhkwjGhMKqD8T/RYgs2pzoR6XE41t8yVm8DwSOHBj6TJgJJxzEIoiw8zZfV6i28KcXa9iwsMvjQncR6ijj6k4iHWWa+5GLRNtQYQc94ncNvtFk/ogw8=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=MqGr4swy; arc=none smtp.client-ip=209.85.216.49", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776342626; x=1776947426;\n darn=vger.kernel.org;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:from:to:cc:subject:date:message-id:reply-to;\n bh=nXyx9Of1fZk9FgzWy3f9pZji2NYevahYiZ7odSyvBh8=;\n b=MqGr4swyqbH2+ZX0i1hBKP4ilbv541ap58EDdORKMscc0DhtbdohqNCRlkrNShfiVY\n CsjwYWEl4pIIubX35LWOufbcrixiK2w5DTnbM/T9PUle5w2BlY3iRDiJhOFHEDqRpIFe\n gQa/5sHehutFnA8HY1AtLZoVcrlwghz0kY4hm3hnGPp4oKG1m6iAcXZCIlHeB/dPH7My\n Aa6n1NQ8SyZqg+Ys7VfvqG7+UujxXE3iIX81QyaDzfJgAMFGzw8dYdvIfHhhNVTSymYa\n DEfQY+xhH3CDPvI3QMV0oku39HeacWPG+OeUGTngg31jD8uUEG3bqd2bqxdL8rWgB7IU\n ThAQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776342626; x=1776947426;\n h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=nXyx9Of1fZk9FgzWy3f9pZji2NYevahYiZ7odSyvBh8=;\n b=KNoTj6mC+uxzzaXPb4XjyKaJ3FmmV15KykZA9VW6teifawmCI/YcffmA4Fl5IY/oCf\n id/jQhUqybQv0c8ahut6A6Hbm9UDFKbOok7fGJOsN10ut0oQMMFjfRnMy6TrzKn98/Gs\n 04FWZh7MQdUzc/XIpNW0REBwh0MFcRFg+zv9ZzILHhSjjhKMkHgyNbyMkdpacEWZr34D\n TzHj/YHNzfHoBRTev/eqag3uEKGkQ87fsNjki27mTzwzFuc4JZ/a/D8/bj0TQF3dDAcE\n Wgb2wSYr2w0g4y8PDVdbe93/UYk9dbdbulmq5/s+WrX3ksRxwgDDuLVRKmDIlBDQ3Ws6\n dCFg==", "X-Gm-Message-State": "AOJu0YxH2GidEyFN628MXOqZMWEXaYGNbsX3lXshK3QXPLJ5Z+nc96Wl\n\tMccvPpO97dYfqC7Euwe7FpeKOtQ7qidr8sfwZdOVK8kF+XygGJ0qaC+r", "X-Gm-Gg": "AeBDiesS2zlmL4yCEfmvvcyCOlRpQEtPiOvgXqg8lGrFHi9qUTKiFoSyhmoQTNIFK+X\n\t6f8wX5u7XSNnL9D2ZYJrURp9vyzztFWoYLcXrMvK0+SehVEOuUu5n5QPeHnBEksmCp0R/VEsm31\n\tElNVEjq1xEI3pPPhZNtlZhlMZuq1ADMZEG3pySj8/PdmQ4NEB/3svYPwB35S6KrBLvoP2UAkzWU\n\tuG8wYYA0FVodE6iUT9WNCDLyw5Xs0Fy9Zc1Ud8RinPf7IYSeUqK9NVNweF/Garc4iiJZG83qKH1\n\tRI856WB7hDmsRJ1dwgfW+BZRLNZ0kv/QP+qHyzxQoL6UXPypDFlhPBMyBGBAn0ey30Q62WOiHgI\n\tPYeaGY/C6ZM0W+xs10cG/Add9jnRNKWcM22Mu7W8dwvlIFCo0wTNxh2cH02wdp8H49yJbORDdoF\n\tuX3ogKUXJu3jlHrnT26ht2cvH2WVaK7zjjmzx6oN8xsH3uE6YcDxRVuftltW2SNm8roxWkpyzgZ\n\t8Gfm28TEZtY403hwjYhRvRxyE9qDyo=", "X-Received": "by 2002:a17:90a:fc4e:b0:35f:bddd:3860 with SMTP id\n 98e67ed59e1d1-35fbddd407fmr15048305a91.6.1776342625803;\n Thu, 16 Apr 2026 05:30:25 -0700 (PDT)", "From": "Felix Gu <ustc.gu@gmail.com>", "Date": "Thu, 16 Apr 2026 20:30:20 +0800", "Subject": "[PATCH] PCI: eswin: Fix resource leak on dw_pcie_host_init()\n failure", "Precedence": "bulk", "X-Mailing-List": "linux-pci@vger.kernel.org", "List-Id": "<linux-pci.vger.kernel.org>", "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260416-eswin-v1-1-a4991725b5ca@gmail.com>", "X-B4-Tracking": "v=1; b=H4sIAFvW4GkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE\n vPSU3UzU4B8JSMDIzMDE0Mz3dTi8sw8XZMUA8uUNJNUizQTCyWg2oKi1LTMCrA50bG1tQB4Wd+\n RVwAAAA==", "X-Change-ID": "20260416-eswin-4d09df4e8f48", "To": "Senchuan Zhang <zhangsenchuan@eswincomputing.com>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?=\n\t=?utf-8?q?=C5=84ski?= <kwilczynski@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>,\n Yanghui Ou <ouyanghui@eswincomputing.com>,\n Yu Ning <ningyu@eswincomputing.com>", "Cc": "linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,\n Felix Gu <ustc.gu@gmail.com>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1776342623; l=1191;\n i=ustc.gu@gmail.com; h=from:subject:message-id;\n bh=gxmdeBujeV0jMHCbtCpMQ5fj+WZiF0J1mmGcycJtdpY=;\n b=Yhm/LfwgzcTnfwUhoJsNjILRPY3cdic+tF7NVO9Pzo3jGEbpzACn1GShqKSW4xYlhy0soWmyM\n iO1zOJaq9pQD/DmJ97YhRDKEn6rHbmRa6DYVcio9cig2dMr2QvMmsCn", "X-Developer-Key": "i=ustc.gu@gmail.com; a=ed25519;\n pk=fjUXwmjchVN7Ja6KGP55IXOzFeCl9edaHoQIEUA+/hw=" }, "content": "When dw_pcie_host_init() fails, the code jumps to err_init which\nonly calls pm_runtime_put() but skips the clean up of port resources.\n\nFixes: b593c26d081a (\"PCI: eswin: Add ESWIN PCIe Root Complex driver\")\nSigned-off-by: Felix Gu <ustc.gu@gmail.com>\n---\n drivers/pci/controller/dwc/pcie-eswin.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)\n\n\n---\nbase-commit: 936c21068d7ade00325e40d82bfd2f3f29d9f659\nchange-id: 20260416-eswin-4d09df4e8f48\n\nBest regards,", "diff": "diff --git a/drivers/pci/controller/dwc/pcie-eswin.c b/drivers/pci/controller/dwc/pcie-eswin.c\nindex 2845832b3824..0185b55e09e3 100644\n--- a/drivers/pci/controller/dwc/pcie-eswin.c\n+++ b/drivers/pci/controller/dwc/pcie-eswin.c\n@@ -348,7 +348,7 @@ static int eswin_pcie_probe(struct platform_device *pdev)\n \tret = dw_pcie_host_init(&pci->pp);\n \tif (ret) {\n \t\tdev_err(dev, \"Failed to init host\\n\");\n-\t\tgoto err_init;\n+\t\tgoto err_pm_runtime_put;\n \t}\n \n \treturn 0;\n@@ -358,7 +358,6 @@ static int eswin_pcie_probe(struct platform_device *pdev)\n \t\treset_control_put(port->perst);\n \t\tlist_del(&port->list);\n \t}\n-err_init:\n \tpm_runtime_put(dev);\n \n \treturn ret;\n", "prefixes": [] }