get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/138374/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 138374,
    "url": "http://patchwork.dpdk.org/api/patches/138374/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240314093630.1066948-4-mingjinx.ye@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240314093630.1066948-4-mingjinx.ye@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240314093630.1066948-4-mingjinx.ye@intel.com",
    "date": "2024-03-14T09:36:30",
    "name": "[3/3] net/vdev: fix insert vdev core dump",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c9bb68c9d0f028cd13960bffeb30bb49a2070ef6",
    "submitter": {
        "id": 2862,
        "url": "http://patchwork.dpdk.org/api/people/2862/?format=api",
        "name": "Mingjin Ye",
        "email": "mingjinx.ye@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240314093630.1066948-4-mingjinx.ye@intel.com/mbox/",
    "series": [
        {
            "id": 31507,
            "url": "http://patchwork.dpdk.org/api/series/31507/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31507",
            "date": "2024-03-14T09:36:27",
            "name": "fix insert dev core dump",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/31507/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/138374/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/138374/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8346243CB2;\n\tThu, 14 Mar 2024 10:54:55 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C6D2C42E70;\n\tThu, 14 Mar 2024 10:54:40 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.17])\n by mails.dpdk.org (Postfix) with ESMTP id 8912A42E65;\n Thu, 14 Mar 2024 10:54:38 +0100 (CET)",
            "from orviesa010.jf.intel.com ([10.64.159.150])\n by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Mar 2024 02:54:38 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.253])\n by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Mar 2024 02:54:37 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1710410079; x=1741946079;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=saAQ6BjDU9X0Bry3EqndEr033TMw3MpKb2PQcUKZCTI=;\n b=AiWE0dD/+KstQOLrnaimF14QCVFCWlw211Y8dr6I0Fs50cmUzUYZ2cDa\n wLyxDYScwRznhfEelb81rw24FGWnFXACLuRI3fmiu0uP3bSHH9rlGG9HZ\n SULji0loVz+K6eWgZ/i6zfLcWegJZf0CUGB8q6oEzpei+e1kLtyT/Jqei\n 9Z/4pL7gu3HYlXRZSx0Oy8TTVrQlmvvJJUTVTgznQzIUp6IwR/WNHph41\n 1P3T+U7wkXKfd6D4SOEhlaDmqcG9N8+Vmo8jcx5EC0EwiczCtIhXTWfZT\n UulPKjJdnb4qZQvH2jv55Z9LBLNbKgcTQsmTukq7xPYQxLijtwJwsmqoG Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,11012\"; a=\"5339887\"",
            "E=Sophos;i=\"6.07,125,1708416000\";\n   d=\"scan'208\";a=\"5339887\"",
            "E=Sophos;i=\"6.07,125,1708416000\"; d=\"scan'208\";a=\"12125219\""
        ],
        "X-ExtLoop1": "1",
        "From": "Mingjin Ye <mingjinx.ye@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Mingjin Ye <mingjinx.ye@intel.com>,\n\tstable@dpdk.org",
        "Subject": "[PATCH 3/3] net/vdev: fix insert vdev core dump",
        "Date": "Thu, 14 Mar 2024 09:36:30 +0000",
        "Message-Id": "<20240314093630.1066948-4-mingjinx.ye@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240314093630.1066948-1-mingjinx.ye@intel.com>",
        "References": "<20240314093630.1066948-1-mingjinx.ye@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Inserting a vdev device when the device arguments are already stored\nin devargs_list, the rte_devargs_insert function replaces the supplied\nnew devargs with the found devargs and frees the new devargs. As a\nresult, the use of free devargs results in a core dump.\n\nThis patch fixes the issue by using valid devargs.\n\nFixes: f3a1188cee4a (\"devargs: make device representation generic\")\nCc: stable@dpdk.org\n\nSigned-off-by: Mingjin Ye <mingjinx.ye@intel.com>\n---\n drivers/bus/vdev/vdev.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c\nindex 1a6cc7d12d..53fc4a6e21 100644\n--- a/drivers/bus/vdev/vdev.c\n+++ b/drivers/bus/vdev/vdev.c\n@@ -286,7 +286,6 @@ insert_vdev(const char *name, const char *args, struct rte_vdev_device **p_dev)\n \n \tdev->device.bus = &rte_vdev_bus;\n \tdev->device.numa_node = SOCKET_ID_ANY;\n-\tdev->device.name = devargs->name;\n \n \tif (find_vdev(name)) {\n \t\t/*\n@@ -300,6 +299,7 @@ insert_vdev(const char *name, const char *args, struct rte_vdev_device **p_dev)\n \n \trte_devargs_insert(&devargs);\n \tdev->device.devargs = devargs;\n+\tdev->device.name = devargs->name;\n \tTAILQ_INSERT_TAIL(&vdev_device_list, dev, next);\n \n \tif (p_dev)\n",
    "prefixes": [
        "3/3"
    ]
}