Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/96468/?format=api
http://patches.dpdk.org/api/patches/96468/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210730144158.1981-1-gaoxiangliu0@163.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": "<20210730144158.1981-1-gaoxiangliu0@163.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210730144158.1981-1-gaoxiangliu0@163.com", "date": "2021-07-30T14:41:57", "name": "net/virtio: fix repeated memory free of vq", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6468d512a5e4588fe050e629b17cc3c0504727ee", "submitter": { "id": 2304, "url": "http://patches.dpdk.org/api/people/2304/?format=api", "name": "Gaoxiang Liu", "email": "gaoxiangliu0@163.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/20210730144158.1981-1-gaoxiangliu0@163.com/mbox/", "series": [ { "id": 18102, "url": "http://patches.dpdk.org/api/series/18102/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18102", "date": "2021-07-30T14:41:57", "name": "net/virtio: fix repeated memory free of vq", "version": 1, "mbox": "http://patches.dpdk.org/series/18102/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/96468/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/96468/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 38E51A0C40;\n\tFri, 30 Jul 2021 16:42:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E886E40040;\n\tFri, 30 Jul 2021 16:42:17 +0200 (CEST)", "from m12-18.163.com (m12-18.163.com [220.181.12.18])\n by mails.dpdk.org (Postfix) with ESMTP id 0A62C4003F;\n Fri, 30 Jul 2021 16:42:15 +0200 (CEST)", "from DESKTOP-ONA2IA7.localdomain (unknown [39.182.55.95])\n by smtp14 (Coremail) with SMTP id EsCowAD3_9e7DwRhR3ILxQ--.17599S4;\n Fri, 30 Jul 2021 22:42:12 +0800 (CST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=S8HIJ\n jyHyRro/tZdA79ZXTMXnSoueoZ+qmSCv2NP/jE=; b=CIqRjPRQ4EKqCHg2PdQ4t\n EWGodIT2/6ELGA93iy9Nqoj8BpNoaYskWX8CgZefjVmnK8AL/Ax4TieOv+V0/Tmt\n 32agAcFn7WMWIJr1ECOccXtIIt0tT5rGKH8gd7cCojaCS+8TYCCjGTG5VMkKpZgU\n uJVi5kBx7imG9MU+I3l42s=", "From": "Gaoxiang Liu <gaoxiangliu0@163.com>", "To": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>", "Cc": "dev@dpdk.org, liugaoxiang@huawei.com, Gaoxiang Liu <gaoxiangliu0@163.com>,\n stable@dpdk.org", "Date": "Fri, 30 Jul 2021 22:41:57 +0800", "Message-Id": "<20210730144158.1981-1-gaoxiangliu0@163.com>", "X-Mailer": "git-send-email 2.32.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-CM-TRANSID": "EsCowAD3_9e7DwRhR3ILxQ--.17599S4", "X-Coremail-Antispam": "1Uf129KBjvdXoWrKr1fXrWkZF48ZFyUAFW5Wrg_yoWfGrX_Gr\n 17JF9rAF4UC3Wq93y7Ar1rZrySk3Z5GFykWa9Iq34rX3WUG3W5XrnIvrnxGanrWw4UCrZr\n Grs3Gwn8u34S9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUn038UUUUUU==", "X-Originating-IP": "[39.182.55.95]", "X-CM-SenderInfo": "xjdr5xxdqjzxjxq6il2tof0z/1tbiWwTfOlSIq-rmIgAAsz", "Subject": "[dpdk-dev] [PATCH] net/virtio: fix repeated memory free of vq", "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": "When virtio_init_queue returns error, the memory of vq is freed.\nBut the value of hw->vqs[queue_idx] does not restore.`\nIf hw->vqs[queue_idx] != NULL, the memory of vq is freed again\nin virtio_free_queues.\n\nFixes: 69c80d4ef89b (\"net/virtio: allocate queue at init stage\")\nCc: stable@dpdk.org\n\nSigned-off-by: Gaoxiang Liu <gaoxiangliu0@163.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex 056830566..fc72d71cb 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -631,6 +631,7 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t queue_idx)\n \trte_memzone_free(mz);\n free_vq:\n \trte_free(vq);\n+\thw->vqs[queue_idx] = NULL;\n \n \treturn ret;\n }\n", "prefixes": [] }{ "id": 96468, "url": "