get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7737,
    "url": "https://patches.dpdk.org/api/patches/7737/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-3-git-send-email-jerome.jutteau@outscale.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": "<1445247869-713-3-git-send-email-jerome.jutteau@outscale.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445247869-713-3-git-send-email-jerome.jutteau@outscale.com",
    "date": "2015-10-19T09:44:27",
    "name": "[dpdk-dev,v2,2/4] vhost: check that a device exists during reset_owner",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "157cca7ae02284a4a8ce596a475bdd5f0d146ef0",
    "submitter": {
        "id": 354,
        "url": "https://patches.dpdk.org/api/people/354/?format=api",
        "name": "Jerome Jutteau",
        "email": "jerome.jutteau@outscale.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-3-git-send-email-jerome.jutteau@outscale.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7737/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7737/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 2DA3A8E8F;\n\tMon, 19 Oct 2015 11:45:20 +0200 (CEST)",
            "from mail-lf0-f51.google.com (mail-lf0-f51.google.com\n\t[209.85.215.51]) by dpdk.org (Postfix) with ESMTP id 20F498E8F\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 11:45:18 +0200 (CEST)",
            "by lffv3 with SMTP id v3so106160266lff.0\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 02:45:17 -0700 (PDT)",
            "from localhost.localdomain\n\t(ows-185-21-195-233.eu-west-1.compute.outscale.com. [185.21.195.233])\n\tby smtp.gmail.com with ESMTPSA id\n\txt1sm39011197wjb.32.2015.10.19.02.45.16\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 19 Oct 2015 02:45:16 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=r72ge3x6yPxAx1jJkMmqnVyUwPXhS4QYPwjs6kCAOJs=;\n\tb=WQkPM3MZ0le73u2pVQeCb1Y2c2InbZmvnAjJEJa6YrzuKB8qEyLSrlJrVvxDpLUz+N\n\tgzEQqvpWrUqPLwgXKpvk8Cd7cC9hSj6SnnJo/r7X+xEX+c+YgUE68/QgM+wT2X7YLxsB\n\t/g09mUbQP4edJEDxg1/pg/DSSlctbvO9TFeGUjTYbvhMBpJ48VVsry3g7rWwUn/RJ/IY\n\tMqo2OxCr0qUf+s1D7Fcn7kPGh69UAkGxGH/RSoQ2qUbPTcfnY1vfXUV7vHJ5HlnySCzR\n\tDcYy8v887KlSUsQO4+toHBp6qtiY5Q8AwhkmVEKX1eM9Tqn2qKoF1dg4dKu4mjQ4gsr4\n\t/WiA==",
        "X-Gm-Message-State": "ALoCoQmZOO2LDRMxBd54zb5Zy/MfWDNideOt43FbSeiMBAIFazZg5u1Dn0tB7SjXAdLg1rB4b+fo",
        "X-Received": "by 10.194.239.230 with SMTP id vv6mr30906481wjc.21.1445247917406;\n\tMon, 19 Oct 2015 02:45:17 -0700 (PDT)",
        "From": "Jerome Jutteau <jerome.jutteau@outscale.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 19 Oct 2015 11:44:27 +0200",
        "Message-Id": "<1445247869-713-3-git-send-email-jerome.jutteau@outscale.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>",
        "References": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/4] vhost: check that a device exists during\n\treset_owner",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "virtio-net search for it's device in reset_owner.\nThe function don't check the return result of get_config_ll_entry\nwhich can be NULL.\n\nSigned-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>\n---\n lib/librte_vhost/virtio-net.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c\nindex 955a29d..ec6a575 100644\n--- a/lib/librte_vhost/virtio-net.c\n+++ b/lib/librte_vhost/virtio-net.c\n@@ -402,6 +402,8 @@ reset_owner(struct vhost_device_ctx ctx)\n \tuint64_t device_fh;\n \n \tll_dev = get_config_ll_entry(ctx);\n+\tif (ll_dev == NULL)\n+\t\treturn -1;\n \tdevice_fh = ll_dev->dev.device_fh;\n \n \tcleanup_device(&ll_dev->dev);\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/4"
    ]
}