Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/105291/?format=api
http://patches.dpdk.org/api/patches/105291/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211220124100.1307675-1-baymaxhuang@gmail.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": "<20211220124100.1307675-1-baymaxhuang@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211220124100.1307675-1-baymaxhuang@gmail.com", "date": "2021-12-20T12:41:00", "name": "net/virtio: unregister virtio user memery event to fix memory leak problem", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "79a891400258fb5e0bebf570887452cc5b6a5bb4", "submitter": { "id": 2435, "url": "http://patches.dpdk.org/api/people/2435/?format=api", "name": "Harold Huang", "email": "baymaxhuang@gmail.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211220124100.1307675-1-baymaxhuang@gmail.com/mbox/", "series": [ { "id": 20984, "url": "http://patches.dpdk.org/api/series/20984/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20984", "date": "2021-12-20T12:41:00", "name": "net/virtio: unregister virtio user memery event to fix memory leak problem", "version": 1, "mbox": "http://patches.dpdk.org/series/20984/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/105291/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/105291/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 90748A00BE;\n\tMon, 20 Dec 2021 13:41:12 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1537B40040;\n\tMon, 20 Dec 2021 13:41:12 +0100 (CET)", "from mail-pj1-f51.google.com (mail-pj1-f51.google.com\n [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 9C0A54003C\n for <dev@dpdk.org>; Mon, 20 Dec 2021 13:41:10 +0100 (CET)", "by mail-pj1-f51.google.com with SMTP id iy13so3790903pjb.5\n for <dev@dpdk.org>; Mon, 20 Dec 2021 04:41:10 -0800 (PST)", "from localhost.localdomain ([157.255.44.219])\n by smtp.gmail.com with ESMTPSA id r10sm17486987pff.120.2021.12.20.04.41.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 20 Dec 2021 04:41:09 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=eii4lj+LvkzC8g/Mj2ArR5OLB7m0yOdd5BiZKMHTDAo=;\n b=gVV56pprfvLEf1EK0p+c2mxLJNQEYVx+UKSrrlbgIBv9Ds1gG096IFHy712T3Df+P3\n tvUlx58TqeTFVAssR7KhC9I9gM7DHiYsM2k9RNdJ4oJ2F3/qM5KE+qfPlPbA/qDwSJwv\n 36UWqDjqBY2XcK3/atpZk2vM8H7evITj0q8msvmvDZx+3jvBYivxelYF+OWVZhPS/G7E\n +ho48bUhx9wU5mlq1FI13bI8YKUHtR8Z0x6upBX0A4Y9RDaYRYEWDrNCiop4AGw1SgoU\n EvzGDXYanYDIkaZlwsM6YTZOz3n/K10Cl3GeRCt4qtyNXJSNLFMzehcA9uJuxtns1b9C\n 4tFg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=eii4lj+LvkzC8g/Mj2ArR5OLB7m0yOdd5BiZKMHTDAo=;\n b=4Uxdzjrudrx/6x/XcjLxEi79Aw+tHkriuIEYHxBKztkTbMcFFESIILdCKmkngHLR8m\n 2pT8rExOHUIyxJ11QHCoPfCk+aVb2W7EF7hWrv6Hl52cqQPsREFB0Oa2fITijmimTk41\n nxcYJsJ/SqmrRcuVLtNIupyylafXRfUjW0ZF/Q7gPjLBrspvL/FzZQrbSiHxdWLKqorS\n t1GMSSMDb6QMIagodexvutuomdLJLRc/f6CYfLnjs8dRMsqLbuKjLQMYJf0ewH+KYzCJ\n rAFMWXsy8otAKgJVezBJUNtwz5g0eLxNZ0vi27XJCV2uglwntMNiKEeeiMxQOWc2v1Ty\n IB8Q==", "X-Gm-Message-State": "AOAM533yjcqWRExg7GxcS0oktUVL0HmS/+7/NoVVyUJPG6mD+VB5Tz9n\n cknvQHhgPRcKwO1AqdC7ezJCuItD+wKBmg==", "X-Google-Smtp-Source": "\n ABdhPJzZu1gQlFGjulpfyJlZDa3FJQ9wmkg9zJYXCgFbSWghCgRLPZP0e5g1LiOXGvVMP0MCn9St4A==", "X-Received": "by 2002:a17:90b:4f4c:: with SMTP id\n pj12mr12959686pjb.121.1640004069639;\n Mon, 20 Dec 2021 04:41:09 -0800 (PST)", "From": "Harold Huang <baymaxhuang@gmail.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com,\n\tchenbo.xia@intel.com", "Subject": "[PATCH] net/virtio: unregister virtio user memery event to fix memory\n leak problem", "Date": "Mon, 20 Dec 2021 20:41:00 +0800", "Message-Id": "<20211220124100.1307675-1-baymaxhuang@gmail.com>", "X-Mailer": "git-send-email 2.27.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "When eth_virtio_dev_init is failed, the registered virtio user memery is\nnot released and creating a new virtio user dev could be failed becase the\nnew dev could use the same address pointer and the register virtio user\nmemory to the same address is not allowed.\n\nSigned-off-by: Harold Huang <baymaxhuang@gmail.com>\n---\n drivers/net/virtio/virtio_user_ethdev.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c\nindex 0271098f0d..16eca2f940 100644\n--- a/drivers/net/virtio/virtio_user_ethdev.c\n+++ b/drivers/net/virtio/virtio_user_ethdev.c\n@@ -666,6 +666,7 @@ virtio_user_pmd_probe(struct rte_vdev_device *vdev)\n \t/* previously called by pci probing for physical dev */\n \tif (eth_virtio_dev_init(eth_dev) < 0) {\n \t\tPMD_INIT_LOG(ERR, \"eth_virtio_dev_init fails\");\n+\t\tvirtio_user_dev_uninit(dev);\n \t\tvirtio_user_eth_dev_free(eth_dev);\n \t\tgoto end;\n \t}\n", "prefixes": [] }{ "id": 105291, "url": "