Show a patch.

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

{
    "id": 74511,
    "url": "https://patches.dpdk.org/api/patches/74511/",
    "web_url": "https://patches.dpdk.org/patch/74511/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200721121057.32597-1-patrick.fu@intel.com>",
    "date": "2020-07-21T12:10:57",
    "name": "[v2] vhost: fix double-free with zero-copy",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "66b6f86875a67c16937ab22d850aaca9b540b33f",
    "submitter": {
        "id": 1781,
        "url": "https://patches.dpdk.org/api/people/1781/",
        "name": "Patrick Fu",
        "email": "patrick.fu@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74511/mbox/",
    "series": [
        {
            "id": 11182,
            "url": "https://patches.dpdk.org/api/series/11182/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11182",
            "date": "2020-07-21T12:10:57",
            "name": "[v2] vhost: fix double-free with zero-copy",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/11182/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74511/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74511/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9688\"; a=\"211600990\"",
            "E=Sophos;i=\"5.75,377,1589266800\"; d=\"scan'208\";a=\"211600990\"",
            "E=Sophos;i=\"5.75,377,1589266800\"; d=\"scan'208\";a=\"310078089\""
        ],
        "IronPort-SDR": [
            "\n ISTnJAbpI5V3HYxC1Afd+aL2i7MmOxFwVajEia8ZY5f2aDWxOFCXx4Mxw2ZZHOOgUFcvf3Pi6/\n DwzRmpOd87pg==",
            "\n 7c6qp9xrt+6d8mwHVDJ3Bg7BkPM4HP830I+WSKU7wKd0X8I3dK3UP6/AeSEF30hqPF7BDYQCCf\n 4034Cgwn+eWA=="
        ],
        "X-Amp-File-Uploaded": "False",
        "Precedence": "list",
        "X-Mailman-Version": "2.1.15",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<20200715155848.9501-1-patrick.fu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] vhost: fix double-free with zero-copy",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 60C00A0526;\n\tTue, 21 Jul 2020 05:18:25 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EB07D1BFEE;\n\tTue, 21 Jul 2020 05:18:23 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id BF81D1BFEC\n for <dev@dpdk.org>; Tue, 21 Jul 2020 05:18:22 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2020 20:18:21 -0700",
            "from npg-dpdk-patrickfu-casc1.sh.intel.com ([10.67.111.105])\n by fmsmga004.fm.intel.com with ESMTP; 20 Jul 2020 20:18:20 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Mailer": "git-send-email 2.17.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-ExtLoop1": "1",
        "Date": "Tue, 21 Jul 2020 12:10:57 +0000",
        "To": "dev@dpdk.org,\n\tmaxime.coquelin@redhat.com,\n\tchenbo.xia@intel.com",
        "From": "patrick.fu@intel.com",
        "In-Reply-To": "<20200715155848.9501-1-patrick.fu@intel.com>",
        "Cc": "Patrick Fu <patrick.fu@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200721121057.32597-1-patrick.fu@intel.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "From: Patrick Fu <patrick.fu@intel.com>\n\nzmbufs should be set to NULL when getting freed to avoid double free on\nthe same buffer pointer\n\nFixes: b0a985d1f340 (\"vhost: add dequeue zero copy\")\n\nSigned-off-by: Patrick Fu <patrick.fu@intel.com>\n---\nv2:\n - revise commit message title\n\n lib/librte_vhost/vhost_user.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex df0db8a07..9ddeae362 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -1934,6 +1934,7 @@ free_zmbufs(struct vhost_virtqueue *vq)\n \tdrain_zmbuf_list(vq);\n \n \trte_free(vq->zmbufs);\n+\tvq->zmbufs = NULL;\n }\n \n /*\n",
    "prefixes": [
        "v2"
    ]
}