get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 110675,
    "url": "http://patches.dpdk.org/api/patches/110675/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220505080233.12737-10-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": "<20220505080233.12737-10-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220505080233.12737-10-fengchengwen@huawei.com",
    "date": "2022-05-05T08:02:32",
    "name": "[v3,09/10] ethdev: fix possible null pointer access",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "71e681ace2e2709e5d3dfce6fa4d76d68db1e688",
    "submitter": {
        "id": 2146,
        "url": "http://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@huawei.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patches.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220505080233.12737-10-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 22789,
            "url": "http://patches.dpdk.org/api/series/22789/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22789",
            "date": "2022-05-05T08:02:25",
            "name": "bugfix for ethdev telemetry",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/22789/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/110675/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/110675/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 A364EA00C4;\n\tThu,  5 May 2022 10:09:33 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5286B42854;\n\tThu,  5 May 2022 10:08:42 +0200 (CEST)",
            "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 6D46D40042\n for <dev@dpdk.org>; Thu,  5 May 2022 10:08:32 +0200 (CEST)",
            "from dggpeml500024.china.huawei.com (unknown [172.30.72.56])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Kv5sB2hNdz1JBwV;\n Thu,  5 May 2022 16:07:26 +0800 (CST)",
            "from localhost.localdomain (10.67.165.24) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.24; Thu, 5 May 2022 16:08:30 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <ferruh.yigit@xilinx.com>,\n <andrew.rybchenko@oktetlabs.ru>, <ndabilpuram@marvell.com>,\n <kirankumark@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>",
        "CC": "<mb@smartsharesystems.com>, <stephen@networkplumber.org>, <dev@dpdk.org>",
        "Subject": "[PATCH v3 09/10] ethdev: fix possible null pointer access",
        "Date": "Thu, 5 May 2022 16:02:32 +0800",
        "Message-ID": "<20220505080233.12737-10-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.33.0",
        "In-Reply-To": "<20220505080233.12737-1-fengchengwen@huawei.com>",
        "References": "<20220416010747.40714-1-fengchengwen@huawei.com>\n <20220505080233.12737-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.67.165.24]",
        "X-ClientProxiedBy": "dggems702-chm.china.huawei.com (10.3.19.179) To\n dggpeml500024.china.huawei.com (7.185.36.10)",
        "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": "The rte_tel_data_alloc() may return NULL, so the caller should add\njudgement for it.\n\nFixes: 083b0b310b19 (\"ethdev: add common stats for telemetry\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n lib/ethdev/rte_ethdev.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c\nindex 76037e635b..4a76272722 100644\n--- a/lib/ethdev/rte_ethdev.c\n+++ b/lib/ethdev/rte_ethdev.c\n@@ -5485,6 +5485,8 @@ eth_dev_add_port_queue_stats(struct rte_tel_data *d, uint64_t *q_stats,\n {\n \tint q;\n \tstruct rte_tel_data *q_data = rte_tel_data_alloc();\n+\tif (q_data == NULL)\n+\t\treturn;\n \trte_tel_data_start_array(q_data, RTE_TEL_U64_VAL);\n \tfor (q = 0; q < RTE_ETHDEV_QUEUE_STAT_CNTRS; q++)\n \t\trte_tel_data_add_array_u64(q_data, q_stats[q]);\n",
    "prefixes": [
        "v3",
        "09/10"
    ]
}