get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87456,
    "url": "https://patches.dpdk.org/api/patches/87456/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210128051653.20503-1-adwivedi@marvell.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": "<20210128051653.20503-1-adwivedi@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210128051653.20503-1-adwivedi@marvell.com",
    "date": "2021-01-28T05:16:53",
    "name": "[v2] crypto/octeontx2: fix null pointer dereferences",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "76c0de20501a890a2081360dd13c24ddd4032311",
    "submitter": {
        "id": 1561,
        "url": "https://patches.dpdk.org/api/people/1561/?format=api",
        "name": "Ankur Dwivedi",
        "email": "adwivedi@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210128051653.20503-1-adwivedi@marvell.com/mbox/",
    "series": [
        {
            "id": 14983,
            "url": "https://patches.dpdk.org/api/series/14983/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14983",
            "date": "2021-01-28T05:16:53",
            "name": "[v2] crypto/octeontx2: fix null pointer dereferences",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/14983/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87456/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/87456/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 5B988A09E4;\n\tThu, 28 Jan 2021 06:17:15 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CC4A7140CCF;\n\tThu, 28 Jan 2021 06:17:14 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 3BD13140CCB\n for <dev@dpdk.org>; Thu, 28 Jan 2021 06:17:13 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 10S5GGsH007806; Wed, 27 Jan 2021 21:17:12 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 36b1xpkcb2-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 27 Jan 2021 21:17:12 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Wed, 27 Jan 2021 21:17:10 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Wed, 27 Jan 2021 21:17:09 -0800",
            "from hyd1349.t110.caveonetworks.com.com (unknown [10.29.45.13])\n by maili.marvell.com (Postfix) with ESMTP id 5F6843F703F;\n Wed, 27 Jan 2021 21:17:08 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=Hj72Z+2LSso7ZJtlMYHo9i0uC07Kn5WoyH+O6Wc/LtI=;\n b=Kl+fsQ11Iruf4bj3jITdpnObMQisnhpEMKTlvCY/YNTBrUjUhQIxxDW33XdPVhYHpDHY\n 7IKs3KpQyLMxUL7ipYg87wrfQ9+zoDKLkvTSOclcHWd2X3uE8JglcqfWF7XTX6O5Ps5A\n FsgsUl0kTBYk7vgalnSqcruD09Pqcq6+5P9PpT9HBj4V+Wncxp0CRgO3yKMJvoG0AtwZ\n JGWQ+Py/Eyf1ClsaF+b3ranbjhJQLX7RQrE9j8IH9DegVQbtR1Bu+WP5yDIF9MhrviCr\n 9YUUpw5E5Xk5l2lqLm0SIoAk4nkr9Ue8V4NsRbV/IcSKpJpGgvxC35ygJDfB3nHQ/XHu FA==",
        "From": "Ankur Dwivedi <adwivedi@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<akhil.goyal@nxp.com>, <anoobj@marvell.com>, <ktejasree@marvell.com>,\n Ankur Dwivedi <adwivedi@marvell.com>",
        "Date": "Thu, 28 Jan 2021 10:46:53 +0530",
        "Message-ID": "<20210128051653.20503-1-adwivedi@marvell.com>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20210122133523.22507-1-adwivedi@marvell.com>",
        "References": "<20210122133523.22507-1-adwivedi@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737\n definitions=2021-01-28_01:2021-01-27,\n 2021-01-28 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2] crypto/octeontx2: fix null pointer\n dereferences",
        "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": "Coverity reports that pointers ip and ip6 may be dereferenced\nwith null value. This patch fixes this.\n\nCoverity issue: 365549\nCoverity issue: 365551\n\nFixes: 8f685ec2d545 (\"crypto/octeontx2: support AES-CBC SHA1-HMAC\")\n\nSigned-off-by: Ankur Dwivedi <adwivedi@marvell.com>\n---\nv2:\n* Fixed wrong fixes reference in commit message.\n\n drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_sec.c b/drivers/crypto/octeontx2/otx2_cryptodev_sec.c\nindex 89ed7cbd2..342f089df 100644\n--- a/drivers/crypto/octeontx2/otx2_cryptodev_sec.c\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_sec.c\n@@ -208,10 +208,10 @@ crypto_sec_ipsec_outb_session_create(struct rte_cryptodev *crypto_dev,\n \tstruct otx2_ipsec_po_sa_ctl *ctl;\n \tint cipher_key_len, auth_key_len;\n \tstruct otx2_ipsec_po_out_sa *sa;\n-\tstruct rte_ipv6_hdr *ip6 = NULL;\n-\tstruct rte_ipv4_hdr *ip = NULL;\n \tstruct otx2_sec_session *sess;\n \tstruct otx2_cpt_inst_s inst;\n+\tstruct rte_ipv6_hdr *ip6;\n+\tstruct rte_ipv4_hdr *ip;\n \tint ret, ctx_len;\n \n \tsess = get_sec_session_private_data(sec_sess);\n@@ -282,6 +282,8 @@ crypto_sec_ipsec_outb_session_create(struct rte_cryptodev *crypto_dev,\n \t\t\t\t\t\tsa->sha2.template.ip4);\n \t\t\t\tctx_len = RTE_ALIGN_CEIL(ctx_len, 8);\n \t\t\t\tlp->ctx_len = ctx_len >> 3;\n+\t\t\t} else {\n+\t\t\t\treturn -EINVAL;\n \t\t\t}\n \t\t\tip->version_ihl = RTE_IPV4_VHL_DEF;\n \t\t\tip->next_proto_id = IPPROTO_ESP;\n@@ -331,6 +333,8 @@ crypto_sec_ipsec_outb_session_create(struct rte_cryptodev *crypto_dev,\n \t\t\t\t\t\tsa->sha2.template.ip6);\n \t\t\t\tctx_len = RTE_ALIGN_CEIL(ctx_len, 8);\n \t\t\t\tlp->ctx_len = ctx_len >> 3;\n+\t\t\t} else {\n+\t\t\t\treturn -EINVAL;\n \t\t\t}\n \n \t\t\tip6->vtc_flow = rte_cpu_to_be_32(0x60000000 |\n",
    "prefixes": [
        "v2"
    ]
}