get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41376,
    "url": "http://patches.dpdk.org/api/patches/41376/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180622035305.28412-1-tiwei.bie@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": "<20180622035305.28412-1-tiwei.bie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180622035305.28412-1-tiwei.bie@intel.com",
    "date": "2018-06-22T03:53:05",
    "name": "vhost: fix potential null pointer dereference",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "32d560ff9eb87ddd89ea075bcdc8aced11e6eff5",
    "submitter": {
        "id": 617,
        "url": "http://patches.dpdk.org/api/people/617/?format=api",
        "name": "Tiwei Bie",
        "email": "tiwei.bie@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180622035305.28412-1-tiwei.bie@intel.com/mbox/",
    "series": [
        {
            "id": 199,
            "url": "http://patches.dpdk.org/api/series/199/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=199",
            "date": "2018-06-22T03:53:05",
            "name": "vhost: fix potential null pointer dereference",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/199/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41376/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41376/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 654541BAE6;\n\tFri, 22 Jun 2018 05:53:41 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id B3D541BADD\n\tfor <dev@dpdk.org>; Fri, 22 Jun 2018 05:53:39 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t21 Jun 2018 20:53:38 -0700",
            "from debian.sh.intel.com ([10.67.104.228])\n\tby orsmga005.jf.intel.com with ESMTP; 21 Jun 2018 20:53:34 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,255,1526367600\"; d=\"scan'208\";a=\"234623580\"",
        "From": "Tiwei Bie <tiwei.bie@intel.com>",
        "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org",
        "Date": "Fri, 22 Jun 2018 11:53:05 +0800",
        "Message-Id": "<20180622035305.28412-1-tiwei.bie@intel.com>",
        "X-Mailer": "git-send-email 2.17.0",
        "Subject": "[dpdk-dev] [PATCH] vhost: fix potential null pointer dereference",
        "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": "Coverity issue: 293097\nFixes: d90cf7d111ac (\"vhost: support host notifier\")\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n lib/librte_vhost/vhost_user.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex 26cfebec0..bea6a0428 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -1830,6 +1830,8 @@ int vhost_user_host_notifier_ctrl(int vid, bool enable)\n \t\treturn -ENOTSUP;\n \n \tvdpa_dev = rte_vdpa_get_device(did);\n+\tif (!vdpa_dev)\n+\t\treturn -ENODEV;\n \n \tRTE_FUNC_PTR_OR_ERR_RET(vdpa_dev->ops->get_vfio_device_fd, -ENOTSUP);\n \tRTE_FUNC_PTR_OR_ERR_RET(vdpa_dev->ops->get_notify_area, -ENOTSUP);\n",
    "prefixes": []
}