get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103363,
    "url": "https://patches.dpdk.org/api/patches/103363/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211101175337.83358-6-hkalra@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": "<20211101175337.83358-6-hkalra@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211101175337.83358-6-hkalra@marvell.com",
    "date": "2021-11-01T17:53:37",
    "name": "[6/6] net/mlx4: fix dereference after null check",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "adeaf7c56ffcada89bb72160ec873c2b7afac92f",
    "submitter": {
        "id": 1182,
        "url": "https://patches.dpdk.org/api/people/1182/?format=api",
        "name": "Harman Kalra",
        "email": "hkalra@marvell.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211101175337.83358-6-hkalra@marvell.com/mbox/",
    "series": [
        {
            "id": 20183,
            "url": "https://patches.dpdk.org/api/series/20183/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=20183",
            "date": "2021-11-01T17:53:32",
            "name": "[1/6] interrupts: fix argument cannot be negative",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/20183/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/103363/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/103363/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 0D14BA0548;\n\tMon,  1 Nov 2021 18:54:33 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F382140E28;\n\tMon,  1 Nov 2021 18:54:32 +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 A60C240DF6\n for <dev@dpdk.org>; Mon,  1 Nov 2021 18:54:30 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1A1CKSAT001065;\n Mon, 1 Nov 2021 10:54:30 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3c25c4bsfj-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 01 Nov 2021 10:54:30 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 1 Nov 2021 10:54:28 -0700",
            "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.18 via Frontend\n Transport; Mon, 1 Nov 2021 10:54:27 -0700",
            "from localhost.marvell.com (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id DE4713F70B3;\n Mon,  1 Nov 2021 10:54:25 -0700 (PDT)"
        ],
        "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-type; s=pfpt0220; bh=ruJEa8zQpBRI1BRwxMK8Sc8+byAuECcCSI5Y3vH0+x4=;\n b=Ls4hr5Kui14tawUSkhAErAv5TNgNE7X/3tVOdjaIpH5DkFqjOjDoFdS8spQ0mpbZjyQ1\n 7QdvVCt1L/cPyV5s0dQRYsfuJq0IB/SgGcntoDDnXY4QlR3fKF43fW7gGICKCEkEPJCJ\n wuOIjZaBr8PnpU2V15uCTN7Te89c2rXOPku1n7qmQD5hlyw1MYXgPPAi+2w2W78psCz/\n 3qCw7/NLQj6s4FSj8Pg9OiZWkaZuFTnimDcyhf9tZArWoHcw3tyo7IZfxkhN61S9bkxl\n fopuLeBXCPks55/+BA3/ICF5ybhan4s57tFrwrVWa65yu6FnTF4mCVEM2d+bqnYOh1rV 3g==",
        "From": "Harman Kalra <hkalra@marvell.com>",
        "To": "<dev@dpdk.org>, Matan Azrad <matan@nvidia.com>, Viacheslav Ovsiienko\n <viacheslavo@nvidia.com>",
        "CC": "<david.marchand@redhat.com>, <john.mcnamara@intel.com>, Harman Kalra\n <hkalra@marvell.com>",
        "Date": "Mon, 1 Nov 2021 23:23:37 +0530",
        "Message-ID": "<20211101175337.83358-6-hkalra@marvell.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20211101175337.83358-1-hkalra@marvell.com>",
        "References": "<20211101175337.83358-1-hkalra@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "-RMADZznQZsQDBYpuADkQs0SWIPhyU7q",
        "X-Proofpoint-GUID": "-RMADZznQZsQDBYpuADkQs0SWIPhyU7q",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475\n definitions=2021-11-01_06,2021-11-01_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH 6/6] net/mlx4: fix dereference after null check",
        "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": "This patch fixes coverity issue by adding a NULL check\n\nCoverity issue: 373687\nFixes: d61138d4f0e2 (\"drivers: remove direct access to interrupt handle\")\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/net/mlx4/mlx4.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c\nindex cccc71f757..3f3c4a7c72 100644\n--- a/drivers/net/mlx4/mlx4.c\n+++ b/drivers/net/mlx4/mlx4.c\n@@ -1112,7 +1112,8 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)\n \t\tprev_dev = eth_dev;\n \t\tcontinue;\n port_error:\n-\t\trte_intr_instance_free(priv->intr_handle);\n+\t\tif (priv != NULL)\n+\t\t\trte_intr_instance_free(priv->intr_handle);\n \t\trte_free(priv);\n \t\tif (eth_dev != NULL)\n \t\t\teth_dev->data->dev_private = NULL;\n",
    "prefixes": [
        "6/6"
    ]
}