get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105129,
    "url": "http://patches.dpdk.org/api/patches/105129/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@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": "<3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com",
    "date": "2021-12-14T13:30:25",
    "name": "[1/1] mem: check allocation in dynamic hugepage init",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "41395e844480d935fb8fa3ccfaeb52581ed1e86e",
    "submitter": {
        "id": 551,
        "url": "http://patches.dpdk.org/api/people/551/?format=api",
        "name": "Yunjian Wang",
        "email": "wangyunjian@huawei.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 20943,
            "url": "http://patches.dpdk.org/api/series/20943/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20943",
            "date": "2021-12-14T13:30:25",
            "name": "[1/1] mem: check allocation in dynamic hugepage init",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/20943/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105129/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/105129/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 0F789A00C3;\n\tTue, 14 Dec 2021 14:30:32 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5EF3D40E28;\n\tTue, 14 Dec 2021 14:30:31 +0100 (CET)",
            "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id 7FBA54003C;\n Tue, 14 Dec 2021 14:30:29 +0100 (CET)",
            "from dggpemm500020.china.huawei.com (unknown [172.30.72.53])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4JCzkb1fkvz91PJ;\n Tue, 14 Dec 2021 21:29:43 +0800 (CST)",
            "from dggpemm500008.china.huawei.com (7.185.36.136) by\n dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2308.20; Tue, 14 Dec 2021 21:30:26 +0800",
            "from localhost (10.174.242.157) by dggpemm500008.china.huawei.com\n (7.185.36.136) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 14 Dec\n 2021 21:30:26 +0800"
        ],
        "From": "Yunjian Wang <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<anatoly.burakov@intel.com>, <dingxiaoxiong@huawei.com>,\n <xudingke@huawei.com>, Yunjian Wang <wangyunjian@huawei.com>,\n <stable@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 1/1] mem: check allocation in dynamic hugepage init",
        "Date": "Tue, 14 Dec 2021 21:30:25 +0800",
        "Message-ID": "\n <3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com>",
        "X-Mailer": "git-send-email 1.9.5.msysgit.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.174.242.157]",
        "X-ClientProxiedBy": "dggems703-chm.china.huawei.com (10.3.19.180) To\n dggpemm500008.china.huawei.com (7.185.36.136)",
        "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 function malloc() could return NULL, the return value\nneed to be checked.\n\nFixes: 694161b7e065 (\"mem: extract common dynamic memory allocation\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n lib/eal/common/eal_common_dynmem.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/lib/eal/common/eal_common_dynmem.c b/lib/eal/common/eal_common_dynmem.c\nindex 7c5437ddfa..c1e1889f5c 100644\n--- a/lib/eal/common/eal_common_dynmem.c\n+++ b/lib/eal/common/eal_common_dynmem.c\n@@ -304,6 +304,10 @@ eal_dynmem_hugepage_init(void)\n \t\t\t\tneeded = num_pages - num_pages_alloc;\n \n \t\t\t\tpages = malloc(sizeof(*pages) * needed);\n+\t\t\t\tif (pages == NULL) {\n+\t\t\t\t\tRTE_LOG(ERR, EAL, \"Failed to malloc pages\\n\");\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n \n \t\t\t\t/* do not request exact number of pages */\n \t\t\t\tcur_pages = eal_memalloc_alloc_seg_bulk(pages,\n",
    "prefixes": [
        "1/1"
    ]
}