get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55173,
    "url": "http://patches.dpdk.org/api/patches/55173/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190621155659.29297-2-bruce.richardson@intel.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": "<20190621155659.29297-2-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190621155659.29297-2-bruce.richardson@intel.com",
    "date": "2019-06-21T15:56:56",
    "name": "[v2,1/4] raw/skeleton: fix failing test case",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "ed74d59531670f39038a7e5a5ebd2572660a3482",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.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/20190621155659.29297-2-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 5120,
            "url": "http://patches.dpdk.org/api/series/5120/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5120",
            "date": "2019-06-21T15:56:55",
            "name": "fixes and improvements for rawdev",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/5120/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55173/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55173/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 17CB11D558;\n\tFri, 21 Jun 2019 17:57:17 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 31FB71D518;\n\tFri, 21 Jun 2019 17:57:15 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Jun 2019 08:57:13 -0700",
            "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.2])\n\tby fmsmga004.fm.intel.com with ESMTP; 21 Jun 2019 08:57:12 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,400,1557212400\"; d=\"scan'208\";a=\"183441162\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Bruce Richardson <bruce.richardson@intel.com>, shreyansh.jain@nxp.com,\n\tstable@dpdk.org",
        "Date": "Fri, 21 Jun 2019 16:56:56 +0100",
        "Message-Id": "<20190621155659.29297-2-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190621155659.29297-1-bruce.richardson@intel.com>",
        "References": "<20190619170802.7691-1-bruce.richardson@intel.com>\n\t<20190621155659.29297-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 1/4] raw/skeleton: fix failing test case",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Rawdev unit test for setting and getting parameters is failing because\nof a pointer value being dereferenced after the memory it pointed to is\nfreed.\n\nThe freeing of the malloced memory is difficult when using asserts to\ncause early abort of the test cases, since that can leak memory. The\noriginal placement of the free call caused a memory leak if the test\nfinished early, while a fix for that leak caused the test to fail at\ntimes due to the memory variable being referenced after free. For a case\nlike this, using stack rather than heap memory is just easier and avoids\nall issues.\n\nFixes: 55ca1b0f2151 (\"raw/skeleton: add test cases\")\nFixes: 88d0e47880ec (\"raw/skeleton: fix memory leak on test failure\")\nCc: shreyansh.jain@nxp.com\nCc: stable@dpdk.org\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c | 8 ++------\n 1 file changed, 2 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c b/drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c\nindex 359c9e296..a0961c77b 100644\n--- a/drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c\n+++ b/drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c\n@@ -274,17 +274,14 @@ static int\n test_rawdev_attr_set_get(void)\n {\n \tint ret;\n-\tint *dummy_value;\n+\tint dummy_value_store;\n+\tint *dummy_value = &dummy_value_store;\n \tuint64_t ret_value;\n \n \t/* Set an attribute and fetch it */\n \tret = rte_rawdev_set_attr(TEST_DEV_ID, \"Test1\", 100);\n \tRTE_TEST_ASSERT(!ret, \"Unable to set an attribute (Test1)\");\n \n-\tdummy_value = malloc(sizeof(int));\n-\tif (!dummy_value)\n-\t\tRTE_TEST_ASSERT(1, \"Unable to allocate memory (dummy_value)\");\n-\n \t*dummy_value = 200;\n \tret = rte_rawdev_set_attr(TEST_DEV_ID, \"Test2\", (uintptr_t)dummy_value);\n \n@@ -294,7 +291,6 @@ test_rawdev_attr_set_get(void)\n \t\t\t      \"Attribute (Test1) not set correctly (%\" PRIu64 \")\",\n \t\t\t      ret_value);\n \n-\tfree(dummy_value);\n \n \tret_value = 0;\n \tret = rte_rawdev_get_attr(TEST_DEV_ID, \"Test2\", &ret_value);\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}