get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129426,
    "url": "https://patches.dpdk.org/api/patches/129426/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230710170800.12478-6-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "https://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": "<20230710170800.12478-6-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230710170800.12478-6-stephen@networkplumber.org",
    "date": "2023-07-10T17:08:00",
    "name": "[v4,5/5] bus/vdev: check result of rte_vdev_device_name",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "52c475cc486b4ef70387dc3b56be163f753556e3",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230710170800.12478-6-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 28886,
            "url": "https://patches.dpdk.org/api/series/28886/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=28886",
            "date": "2023-07-10T17:07:55",
            "name": "fixes for problems found by codeql analyzer",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/28886/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/129426/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/129426/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 DB7EA42E3C;\n\tMon, 10 Jul 2023 19:08:37 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2440342D2F;\n\tMon, 10 Jul 2023 19:08:12 +0200 (CEST)",
            "from mail-pf1-f180.google.com (mail-pf1-f180.google.com\n [209.85.210.180])\n by mails.dpdk.org (Postfix) with ESMTP id C5445427EE\n for <dev@dpdk.org>; Mon, 10 Jul 2023 19:08:08 +0200 (CEST)",
            "by mail-pf1-f180.google.com with SMTP id\n d2e1a72fcca58-666e6ecb52dso2530625b3a.2\n for <dev@dpdk.org>; Mon, 10 Jul 2023 10:08:08 -0700 (PDT)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n q17-20020a62e111000000b00682ed27f99dsm51799pfh.46.2023.07.10.10.08.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 10 Jul 2023 10:08:07 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1689008888;\n x=1691600888;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=2GMFqc8q8sKJTab0kCmKrnRqp2uw/m53kujq9DrFXaU=;\n b=Ezh1r/8mdz0afcNJ06ZkwO4q6cE9iDOPKUFB2YJnNjgyHrdRV1l++gmkfqNCBTMjn+\n ey7MsdJGpNGZGU1r+DBPvEnTLzLJjcFyTDq7jcUp4XyrgVLJrQ1k43ZAdt6b2WQxaFQu\n DjtYMOPOXqEgPSZQ/btYRRrHhnHLPCiFImTJoWd3L2dTp5H+SU1+4sBCoQCPcvlk0DEC\n IefYRMXNlNG8oVPGH7JlcSYeYZw4UUMU3fXlh5VdhpDZmbAyAkXExotG90VfNIj2F5pQ\n mjT5j7bXCDzfW8bUCoipC/5whNJQaRs7WuJoE4xzVs25ZTAAq6dxVjbTOLCcoRFAXiBV\n 0JcQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1689008888; x=1691600888;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=2GMFqc8q8sKJTab0kCmKrnRqp2uw/m53kujq9DrFXaU=;\n b=XJwy8bBdQk/AGXldqEhSvuC4q7gQemjlDZ7GVgNw4hxYxVG04QboiyQ8eQwq/cXnlm\n zAqq+pEwtDtFoWP/9kCcdPHeMGPZ+T5963qNzsPsz7UBlLqRlqOpsmyPXL/2e8U08Tll\n fuMsnT/YYpuYf9fDwhM1g7zJfALbYt5AsGBzTDBuTHEx9TJiMBq4onmZ7pOMLJmEfJ0n\n XY3A8LF8p8KlFzi5dVG1QvVL5S9CMyYxcMbKYxbIzg3CSlxoXOZAsuC+R/jHFPKauMSe\n TMJQgw1gVI3TQ6w46fDa6Ge44b/iD4HGw/y+k/zOa6kzH4LRcJikMpGIZ1E89fZs9Egz\n nwXg==",
        "X-Gm-Message-State": "ABy/qLYa6onQiRb1sYswaad1l9INQFLB3C5peZGxxyafrHtdMo0ZqtK0\n uAEMf/rFTQ3TBOk+KVIkI88zf/p718ruOpfSHV4/iQ==",
        "X-Google-Smtp-Source": "\n APBJJlEiz0xVzRm66Z8hr2DmoA6HyGBwyoJSH09y8U9uQo2jsF3t9ZPiTovV/5d5Uvs/GbH727Qw8g==",
        "X-Received": "by 2002:a05:6a20:a11f:b0:12c:dac0:a9a4 with SMTP id\n q31-20020a056a20a11f00b0012cdac0a9a4mr12969741pzk.5.1689008887778;\n Mon, 10 Jul 2023 10:08:07 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Sinan Kaya <okaya@kernel.org>,\n Stephen Hemminger <stephen@networkplumber.org>,\n Thomas Monjalon <thomas@monjalon.net>, Ferruh Yigit <ferruh.yigit@amd.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "Subject": "[PATCH v4 5/5] bus/vdev: check result of rte_vdev_device_name",
        "Date": "Mon, 10 Jul 2023 10:08:00 -0700",
        "Message-Id": "<20230710170800.12478-6-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230710170800.12478-1-stephen@networkplumber.org>",
        "References": "<20230120044140.95975-1-okaya@kernel.org>\n <20230710170800.12478-1-stephen@networkplumber.org>",
        "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": "From: Sinan Kaya <okaya@kernel.org>\n\nIn rte_eth_vdev_allocate result of call to rte_vdev_device_name is\ndereferenced here and may be null.\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/ethdev/ethdev_vdev.h | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/ethdev/ethdev_vdev.h b/lib/ethdev/ethdev_vdev.h\nindex 364f140f91b5..6d94a65d975d 100644\n--- a/lib/ethdev/ethdev_vdev.h\n+++ b/lib/ethdev/ethdev_vdev.h\n@@ -34,6 +34,8 @@ rte_eth_vdev_allocate(struct rte_vdev_device *dev, size_t private_data_size)\n {\n \tstruct rte_eth_dev *eth_dev;\n \tconst char *name = rte_vdev_device_name(dev);\n+\tif (name == NULL)\n+\t\treturn NULL;\n \n \teth_dev = rte_eth_dev_allocate(name);\n \tif (!eth_dev)\n",
    "prefixes": [
        "v4",
        "5/5"
    ]
}