get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 93406,
    "url": "https://patches.dpdk.org/api/patches/93406/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210524113023.28553-1-thierry.herbelot@6wind.com/",
    "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": "<20210524113023.28553-1-thierry.herbelot@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210524113023.28553-1-thierry.herbelot@6wind.com",
    "date": "2021-05-24T11:30:23",
    "name": "[v2] sched: check newly allocated pointer",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "58a19437339e2b82f12d4a995aeb3afe4ec89fb3",
    "submitter": {
        "id": 897,
        "url": "https://patches.dpdk.org/api/people/897/?format=api",
        "name": "Thierry Herbelot",
        "email": "thierry.herbelot@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210524113023.28553-1-thierry.herbelot@6wind.com/mbox/",
    "series": [
        {
            "id": 17101,
            "url": "https://patches.dpdk.org/api/series/17101/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17101",
            "date": "2021-05-24T11:30:23",
            "name": "[v2] sched: check newly allocated pointer",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/17101/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/93406/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/93406/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 42379A0547;\n\tMon, 24 May 2021 13:30:27 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2EA054003E;\n\tMon, 24 May 2021 13:30:27 +0200 (CEST)",
            "from proxy.6wind.com (host.78.145.23.62.rev.coltfrance.com\n [62.23.145.78]) by mails.dpdk.org (Postfix) with ESMTP id 644044003C;\n Mon, 24 May 2021 13:30:25 +0200 (CEST)",
            "from localhost (unknown [10.16.0.39])\n by proxy.6wind.com (Postfix) with ESMTP id 4D3479B5064;\n Mon, 24 May 2021 13:30:25 +0200 (CEST)"
        ],
        "From": "Thierry Herbelot <thierry.herbelot@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Thierry Herbelot <thierry.herbelot@6wind.com>,\n Thomas Monjalon <thomas@monjalon.net>, stable@dpdk.org,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n Jasvinder Singh <jasvinder.singh@intel.com>",
        "Date": "Mon, 24 May 2021 13:30:23 +0200",
        "Message-Id": "<20210524113023.28553-1-thierry.herbelot@6wind.com>",
        "X-Mailer": "git-send-email 2.29.2",
        "In-Reply-To": "<20210524085737.15717-1-thierry.herbelot@6wind.com>",
        "References": "<20210524085737.15717-1-thierry.herbelot@6wind.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2] sched: check newly allocated pointer",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Check port->subport_profiles after it was allocated.\n\nFixes: 0ea4c6afcaf14 (\"sched: add subport profile table\")\nCc: stable@dpdk.org\nCc: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nCc: Jasvinder Singh <jasvinder.singh@intel.com>\n\nSigned-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>\n--\nV2: reword patch title\n---\n lib/sched/rte_sched.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c\nindex cd87e688e489..4a2c0e27550d 100644\n--- a/lib/sched/rte_sched.c\n+++ b/lib/sched/rte_sched.c\n@@ -961,7 +961,7 @@ rte_sched_port_config(struct rte_sched_port_params *params)\n \t/* Allocate memory to store the subport profile */\n \tport->subport_profiles  = rte_zmalloc_socket(\"subport_profile\", size2,\n \t\t\t\t\tRTE_CACHE_LINE_SIZE, params->socket);\n-\tif (port == NULL) {\n+\tif (port->subport_profiles == NULL) {\n \t\tRTE_LOG(ERR, SCHED, \"%s: Memory allocation fails\\n\", __func__);\n \n \t\treturn NULL;\n",
    "prefixes": [
        "v2"
    ]
}