Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73634/?format=api
http://patches.dpdk.org/api/patches/73634/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/c953585f981d443a42b24e284a48eed8a8450009.1594270224.git.wangyunjian@huawei.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": "<c953585f981d443a42b24e284a48eed8a8450009.1594270224.git.wangyunjian@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/c953585f981d443a42b24e284a48eed8a8450009.1594270224.git.wangyunjian@huawei.com", "date": "2020-07-09T10:39:21", "name": "[1/1] bus/fslmc: fix memory leak in secondary process", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ac0e527eb94b673e857b2bba612f6dfd7e7c5097", "submitter": { "id": 551, "url": "http://patches.dpdk.org/api/people/551/?format=api", "name": "Yunjian Wang", "email": "wangyunjian@huawei.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/c953585f981d443a42b24e284a48eed8a8450009.1594270224.git.wangyunjian@huawei.com/mbox/", "series": [ { "id": 10924, "url": "http://patches.dpdk.org/api/series/10924/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10924", "date": "2020-07-09T10:39:21", "name": "[1/1] bus/fslmc: fix memory leak in secondary process", "version": 1, "mbox": "http://patches.dpdk.org/series/10924/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/73634/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/73634/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 26984A0528;\n\tThu, 9 Jul 2020 12:40:00 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 90BC71DC07;\n\tThu, 9 Jul 2020 12:39:59 +0200 (CEST)", "from huawei.com (szxga07-in.huawei.com [45.249.212.35])\n by dpdk.org (Postfix) with ESMTP id 222761DB89;\n Thu, 9 Jul 2020 12:39:58 +0200 (CEST)", "from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59])\n by Forcepoint Email with ESMTP id AA466378C068CE24D292;\n Thu, 9 Jul 2020 18:39:56 +0800 (CST)", "from localhost (10.174.185.168) by DGGEMS403-HUB.china.huawei.com\n (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Jul 2020\n 18:39:47 +0800" ], "From": "wangyunjian <wangyunjian@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<hemant.agrawal@nxp.com>, <sachin.saxena@nxp.com>,\n <jerry.lilijun@huawei.com>, <xudingke@huawei.com>, Yunjian Wang\n <wangyunjian@huawei.com>, <stable@dpdk.org>", "Date": "Thu, 9 Jul 2020 18:39:21 +0800", "Message-ID": "\n <c953585f981d443a42b24e284a48eed8a8450009.1594270224.git.wangyunjian@huawei.com>", "X-Mailer": "git-send-email 1.9.5.msysgit.1", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.174.185.168]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH 1/1] bus/fslmc: fix memory leak in secondary\n\tprocess", "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 <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": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nIn fslmc_process_mcp(), we allocate memory for 'dev_name' but not released\nbefore return in secondary process.\n\nCoverity issue: 268327\nFixes: e55d0494ab98 (\"bus/fslmc: support secondary process\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n drivers/bus/fslmc/fslmc_vfio.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c\nindex efe2c43d3..247a265c0 100644\n--- a/drivers/bus/fslmc/fslmc_vfio.c\n+++ b/drivers/bus/fslmc/fslmc_vfio.c\n@@ -772,6 +772,7 @@ fslmc_process_mcp(struct rte_dpaa2_device *dev)\n \t */\n \tif (rte_eal_process_type() == RTE_PROC_SECONDARY) {\n \t\trte_mcp_ptr_list[MC_PORTAL_INDEX] = (void *)v_addr;\n+\t\tfree(dev_name);\n \t\treturn 0;\n \t}\n \n", "prefixes": [ "1/1" ] }{ "id": 73634, "url": "