get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41899,
    "url": "http://patches.dpdk.org/api/patches/41899/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180628225838.22732-1-dg@adax.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": "<20180628225838.22732-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180628225838.22732-1-dg@adax.com",
    "date": "2018-06-28T22:58:38",
    "name": "[1/1] kni: fix segfault in rte_kni_get",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d60b3f1e9b56fefe2304b6f4451721976fd250cb",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.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/20180628225838.22732-1-dg@adax.com/mbox/",
    "series": [
        {
            "id": 303,
            "url": "http://patches.dpdk.org/api/series/303/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=303",
            "date": "2018-06-28T22:57:45",
            "name": "kni: fix segfault in rte_kni_get",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/303/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41899/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41899/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 33A461B440;\n\tFri, 29 Jun 2018 00:58:59 +0200 (CEST)",
            "from mail-ot0-f195.google.com (mail-ot0-f195.google.com\n\t[74.125.82.195]) by dpdk.org (Postfix) with ESMTP id D77B31B43B\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 00:58:57 +0200 (CEST)",
            "by mail-ot0-f195.google.com with SMTP id h6-v6so7982118otj.0\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:58:57 -0700 (PDT)",
            "from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net.\n\t[172.11.198.60]) by smtp.gmail.com with ESMTPSA id\n\tl91-v6sm3837599otc.81.2018.06.28.15.58.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 15:58:56 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=Gm8Z129vqSAAODSSMLiIcSNgPjR3xs48OV8Y88X6ISQ=;\n\tb=UK0m9aPMvzzruFevlqryceBxR1JaeOW4m9QiBJviMfXu2igZk2FMquy/0fRS+WErF1\n\tgZWYBOf9yYNcWLmGckIH9UvdzMy0gnpJiQAuXMKT2XvVTV80v7GLswkHnBNP4pXaG7Z8\n\tReiMBtx7tR76661L9nqgAKwOS/D4U+N+SnBam8E8ba3xbQlo0X8qwi0rA30jZVeEp9wq\n\tJy4r/g7+4aPxcHqphSVeMmOBQCCAr4HJwaXZbQ5L6IsMVONSkqknsOpmvd+9o51T3rcK\n\tNfm5CuicsIIge012pgBfuw7vUTsB7DyeZXjnDyHYK/mICQO4UBcX2Ow+zkGunb6dSeZi\n\tstdA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=Gm8Z129vqSAAODSSMLiIcSNgPjR3xs48OV8Y88X6ISQ=;\n\tb=PdDlwA6KuUd77OpOIZQj1/lfuztsgtM+GaCNVePBJGsjAV4+CHbAyv5VcEI0IlCmRR\n\tRnMfeEscPhyKB5GKRPz5JR9eMAIejiKw4lkEYiTsE5M4/6rJHR+Wojj9U0YHrGWiCvTo\n\t+WKya20F7evMYiqgZ2kadrJCI6+7XXl1cUj0/3cljkMQ7EEXwXUIWg7/tpgA8sjQ+Efj\n\tYuXIu42P2VHM560R9N/derXaEbQokJV+uetUCXCCUz9ms0r9nxv300DYhjyz39NAAu+z\n\t5QB1s5JWbrUFxu2diXnNVom5zCC093aZ8jLe/MjPES33MC7dJWQeLrKMDGLvi67krTZc\n\t7qyQ==",
        "X-Gm-Message-State": "APt69E1ojtXd1UU/fZJNZ6biF/D8EpMe4+urAKHFhVuBQ1dSd0BMzay/\n\towc3SGmB6EqUicdCV8B8tfg=",
        "X-Google-Smtp-Source": "AAOMgpcQTr6NRb8bHqL9x9FGSCFTy3NO5/h/KfdGhB4XBs47pnHPIYGTys5gykf+GiIdPkizWTiHSw==",
        "X-Received": "by 2002:a9d:4d85:: with SMTP id\n\tu5-v6mr6793347otk.157.1530226737096; \n\tThu, 28 Jun 2018 15:58:57 -0700 (PDT)",
        "From": "Dan Gora <dg@adax.com>",
        "To": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "Cc": "dev@dpdk.org,\n\tDan Gora <dg@adax.com>,\n\tmarc.sune@bisdn.de",
        "Date": "Thu, 28 Jun 2018 15:58:38 -0700",
        "Message-Id": "<20180628225838.22732-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "Subject": "[dpdk-dev] [PATCH 1/1] kni: fix segfault in rte_kni_get",
        "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": "Fix a segmentation fault which occurs when the kni_autotest is run\nin the 'test' application.\n\nThis segmenation fault occurs when rte_kni_get() is called with a\nNULL value for 'name'.\n\nFixes: 0c6bc8ef70ba (\"kni: memzone pool for alloc and release\")\nCc: marc.sune@bisdn.de\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n lib/librte_kni/rte_kni.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex aa3559306..c4199e6ab 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -744,6 +744,9 @@ rte_kni_get(const char *name)\n \tstruct rte_kni_memzone_slot *it;\n \tstruct rte_kni *kni;\n \n+\tif (name == NULL || name[0] == '\\0')\n+\t\treturn NULL;\n+\n \t/* Note: could be improved perf-wise if necessary */\n \tfor (i = 0; i < kni_memzone_pool.max_ifaces; i++) {\n \t\tit = &kni_memzone_pool.slots[i];\n",
    "prefixes": [
        "1/1"
    ]
}