get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134069,
    "url": "http://patches.dpdk.org/api/patches/134069/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231110063653.5948-6-fengchengwen@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<20231110063653.5948-6-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231110063653.5948-6-fengchengwen@huawei.com",
    "date": "2023-11-10T06:36:42",
    "name": "[05/16] dma/idxd: verify strdup return value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c6c005fe7a0290496ffb8865cfc19715cbf328b9",
    "submitter": {
        "id": 2146,
        "url": "http://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@huawei.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231110063653.5948-6-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 30235,
            "url": "http://patches.dpdk.org/api/series/30235/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30235",
            "date": "2023-11-10T06:36:40",
            "name": "verify strdup return value",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30235/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/134069/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/134069/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 AA495432EF;\n\tFri, 10 Nov 2023 07:40:28 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E935142DD6;\n\tFri, 10 Nov 2023 07:39:48 +0100 (CET)",
            "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id E462A410D5\n for <dev@dpdk.org>; Fri, 10 Nov 2023 07:39:40 +0100 (CET)",
            "from dggpeml100024.china.huawei.com (unknown [172.30.72.53])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SRTbN3wTTzPp8v;\n Fri, 10 Nov 2023 14:35:28 +0800 (CST)",
            "from localhost.localdomain (10.50.165.33) by\n dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Fri, 10 Nov 2023 14:39:38 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>, Bruce Richardson\n <bruce.richardson@intel.com>, Kevin Laatz <kevin.laatz@intel.com>, Conor\n Walsh <conor.walsh@intel.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH 05/16] dma/idxd: verify strdup return value",
        "Date": "Fri, 10 Nov 2023 06:36:42 +0000",
        "Message-ID": "<20231110063653.5948-6-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20231110063653.5948-1-fengchengwen@huawei.com>",
        "References": "<20231110063653.5948-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.50.165.33]",
        "X-ClientProxiedBy": "dggems701-chm.china.huawei.com (10.3.19.178) To\n dggpeml100024.china.huawei.com (7.185.36.115)",
        "X-CFilter-Loop": "Reflected",
        "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": "Add verify strdup return value logic.\n\nFixes: e888bb1278c6 (\"dma/idxd: add bus device probing\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n drivers/dma/idxd/idxd_bus.c | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/dma/idxd/idxd_bus.c b/drivers/dma/idxd/idxd_bus.c\nindex 3b2d4c2b65..ba8076715d 100644\n--- a/drivers/dma/idxd/idxd_bus.c\n+++ b/drivers/dma/idxd/idxd_bus.c\n@@ -261,9 +261,15 @@ static int\n is_for_this_process_use(struct rte_dsa_device *dev, const char *name)\n {\n \tchar *runtime_dir = strdup(rte_eal_get_runtime_dir());\n-\tchar *prefix = basename(runtime_dir);\n-\tint prefixlen = strlen(prefix);\n \tint retval = 0;\n+\tint prefixlen;\n+\tchar *prefix;\n+\n+\tif (runtime_dir == NULL)\n+\t\treturn retval;\n+\n+\tprefix = basename(runtime_dir);\n+\tprefixlen = strlen(prefix);\n \n \tif (strncmp(name, \"dpdk_\", 5) == 0)\n \t\tretval = 1;\n",
    "prefixes": [
        "05/16"
    ]
}