Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2222741/?format=api
{ "id": 2222741, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2222741/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260413144012.3009310-1-lgs201920130244@gmail.com/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/1.2/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260413144012.3009310-1-lgs201920130244@gmail.com>", "list_archive_url": null, "date": "2026-04-13T14:40:12", "name": "[v2] misc: microchip: pci1xxxx: fix IRQ vector leak in gp_aux_bus_probe()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9bcc86331554838db780d2ba82328ab9bd59c265", "submitter": { "id": 91722, "url": "http://patchwork.ozlabs.org/api/1.2/people/91722/?format=api", "name": "Guangshuo Li", "email": "lgs201920130244@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260413144012.3009310-1-lgs201920130244@gmail.com/mbox/", "series": [ { "id": 499716, "url": "http://patchwork.ozlabs.org/api/1.2/series/499716/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=499716", "date": "2026-04-13T14:40:12", "name": "[v2] misc: microchip: pci1xxxx: fix IRQ vector leak in gp_aux_bus_probe()", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/499716/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222741/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222741/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-35117-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@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=juwYBLn0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35117-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=\"juwYBLn0\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.46", "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 sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvVd46y64z1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 00:47:52 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 121C4300B054\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 14:40:30 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B5E873DF000;\n\tMon, 13 Apr 2026 14:40:28 +0000 (UTC)", "from mail-pj1-f46.google.com (mail-pj1-f46.google.com\n [209.85.216.46])\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 6ABFF399018\n\tfor <linux-gpio@vger.kernel.org>; Mon, 13 Apr 2026 14:40:27 +0000 (UTC)", "by mail-pj1-f46.google.com with SMTP id\n 98e67ed59e1d1-35d99bae2ebso3943046a91.3\n for <linux-gpio@vger.kernel.org>;\n Mon, 13 Apr 2026 07:40:27 -0700 (PDT)", "from lgs.. ([2409:893d:1188:142d:6c67:74e8:5200:1f39])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35e412233ddsm12701563a91.5.2026.04.13.07.40.21\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 Apr 2026 07:40:25 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776091228; cv=none;\n b=lHzTZ8pbOSwVWmsVXFX2+SRkCp6SCjpI+IzrLw6b89/3tDCbce2aKHbf5uYEkF/0WTrqO58JHm7LZMwLUZKwOQG+MDjwoviwRyHXSKv4+nnAembReUieEL2BXw69H+RV4pj+V+mufVTqKAnfdAasiMaknnf4Y/nDUP9dS2yIhEY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776091228; c=relaxed/simple;\n\tbh=Jw0XkZ7XWVBzbCd5mSi84uhH+sbZPXMd+k/pKIf64fY=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=nW9smg+EoyizR1tbN9hHz6/BduHkUE346tXupQoOMu6cM3wBdV+TjMAI6sPhMkXZhqFF732eE5NeAZVcox5/OPiCOUuHiM6vSN4PkPKUMc5QWXnfnhTWGSr9wjRM79PHQgEVeYfAL8d+V8lV046QhwxQVhfZjYvsrimIfbF3lrY=", "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=juwYBLn0; arc=none smtp.client-ip=209.85.216.46", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776091227; x=1776696027;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=n8HqkCsPnBTjXRg2oQ6IzHB28nfSYPnxw8XmrlaonnE=;\n b=juwYBLn0Z5aUwHRa+2FkKoBLOlJBqWnUDKG8YfoObvoJQTKb9defbYcu8XNnnuByAH\n 6/r6UgLLetjpaT+XsH1F5T6GR6gj8iNbBI85fD3nYVqRNCYZcTT/yosp98LvCRP7hcPG\n 1xpfRye+hcqwbrsPjSH7D+s85eB9Jaz952E0LCPTTSkoCatrOtjwqsQp2qOY4Q32y2eL\n gdx2uhALPFfcxtkGChjmV+FMSxRy5SxEz1IrsxtsqzHiSnqSfz9Dkk6QDnKumtwEjmTU\n Th2LshJmzAgMNq02WwjdgPVuo8yTkVrFbi4X/xtIn9OMmRZ0VlFia4jUeg/jP9A+UXSe\n Z2Ug==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776091227; x=1776696027;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=n8HqkCsPnBTjXRg2oQ6IzHB28nfSYPnxw8XmrlaonnE=;\n b=k9z/32MBiSjjZkbeAtPxSuwz3FV1bQo11T4Nrcu//vk8GPeFn+t44A0f4qp9LUa3Qo\n JXnf9qmt3FhHkuIxJWZuuVCxRD6545u6PZxG0Bt0CG8GZPmLG/cce+DIW1nVN/nB6Hqo\n v7eN4ZCUmbuLeksj4yWkEGXGBoeXO/l4aASdClrq6LE11exAfyHlqVpBAd4Jal/Gp2Md\n N470MOLKqUXfeNVPJK3PKG67Fg8+cldJ1qRmEroTHwH+MNe7qUlwIMaUqYDu/P60+bt2\n UcdMzpjow4cHvWsXLBcA1tbpFXtl5+lmWuwrRWbYw0CJ+PnFTIHFLhjVLNYRuY7wdskq\n jHMQ==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ8FGLb/A6K52E80w+RNCYUDOp/r92G/J+ivzTIrTZNMee0/jxEgXl7I55+V7k2d1i5UjvBeLj/0XpLm@vger.kernel.org", "X-Gm-Message-State": "AOJu0Yxfi5D0fwMWRlfT7mfupV4bOwD2/6vx17R4B/hhpKD5tlqspr67\n\tsm42Ny5Tnd0gpsDhUxdcZqBh4LN03D/6WRm4IIHtrPf7LrXM9APSMc0zs6JR/vNlQyk=", "X-Gm-Gg": "AeBDieuAKKHIsuB15ljaOgvNUORDuVb29M2UIb0I6IZKzTboj2C/4ohGv+WVo2Ycixl\n\tL8YC/VwDyiVknt7GXpBZ4J5hCV4qqc/dzTtY8RZnO9HIOOvVVjNqQryWlNxJ+ru5ENgr4W+8XCO\n\tuiufD9tWQEsHRYEaJ+/8WpWkUQjTBrgddjR1HZqYEZc47WCYVlfjIKUijA7u7f67yZIFoRsMUct\n\tWxWQrOt7O2gJcsAOGbcjBIL9uQxlQzfqtV3OXzc941166WYEuJ333fskJzEJlQv5jP/f9XliB2M\n\tesa7O1FWff69vxm5HP3wRxDnLyjF56SJSTNaiRdkIfHfQrgji9EpFm4EKzB/gxef4EeEnXg4e/L\n\tX1j0x+M3Z3kTMeyWArAUXIf/WmWNQVmXblatmnSmA1KLyGJ6IieY/+kJFEO+YcIhW3zHGSJNf7Y\n\tOX4WDlPNvgauEeB4NwEDL29gSz3/h0RlY=", "X-Received": "by 2002:a17:90a:e7cc:b0:35b:e593:b1d7 with SMTP id\n 98e67ed59e1d1-35e4277fe50mr14632268a91.12.1776091226802;\n Mon, 13 Apr 2026 07:40:26 -0700 (PDT)", "From": "Guangshuo Li <lgs201920130244@gmail.com>", "To": "\"Vaibhaav Ram T.L\" <vaibhaavram.tl@microchip.com>,\n\tKumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>,\n\tArnd Bergmann <arnd@arndb.de>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tlinux-gpio@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Cc": "Guangshuo Li <lgs201920130244@gmail.com>,\n\tstable@vger.kernel.org", "Subject": "[PATCH v2] misc: microchip: pci1xxxx: fix IRQ vector leak in\n gp_aux_bus_probe()", "Date": "Mon, 13 Apr 2026 22:40:12 +0800", "Message-ID": "<20260413144012.3009310-1-lgs201920130244@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "gp_aux_bus_probe() allocates IRQ vectors with pci_alloc_irq_vectors()\nbefore initializing and adding the second auxiliary device.\n\nWhen pci_irq_vector(), auxiliary_device_init() or auxiliary_device_add()\nfor the second auxiliary device fails, the function unwinds the auxiliary\ndevices and ida allocations, but leaves the allocated IRQ vectors behind.\n\nThe issue was identified by a static analysis tool I developed and\nconfirmed by manual review. Add a dedicated error path to call\npci_free_irq_vectors() after IRQ vectors have been allocated\nsuccessfully.\n\nFixes: 393fc2f5948f (\"misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.\")\nCc: stable@vger.kernel.org\nSigned-off-by: Guangshuo Li <lgs201920130244@gmail.com>\n---\nv2:\n - note that the issue was identified by my static analysis tool\n - and confirmed by manual review\n\n drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c\nindex 34c9be437432..5e1f99a35100 100644\n--- a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c\n+++ b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c\n@@ -93,14 +93,14 @@ static int gp_aux_bus_probe(struct pci_dev *pdev, const struct pci_device_id *id\n \n \tretval = pci_irq_vector(pdev, 0);\n \tif (retval < 0)\n-\t\tgoto err_aux_dev_init_1;\n+\t\tgoto err_irq_vectors;\n \n \tpdev->irq = retval;\n \taux_bus->aux_device_wrapper[1]->gp_aux_data.irq_num = pdev->irq;\n \n \tretval = auxiliary_device_init(&aux_bus->aux_device_wrapper[1]->aux_dev);\n \tif (retval < 0)\n-\t\tgoto err_aux_dev_init_1;\n+\t\tgoto err_irq_vectors;\n \n \tretval = auxiliary_device_add(&aux_bus->aux_device_wrapper[1]->aux_dev);\n \tif (retval)\n@@ -113,6 +113,9 @@ static int gp_aux_bus_probe(struct pci_dev *pdev, const struct pci_device_id *id\n \n err_aux_dev_add_1:\n \tauxiliary_device_uninit(&aux_bus->aux_device_wrapper[1]->aux_dev);\n+\n+err_irq_vectors:\n+\tpci_free_irq_vectors(pdev);\n \tgoto err_aux_dev_add_0;\n \n err_aux_dev_init_1:\n", "prefixes": [ "v2" ] }