Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134744/?format=api
http://patches.dpdk.org/api/patches/134744/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/2be401c77779bdc38c8a79b006665ba623c6e2db.1701426993.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": "<2be401c77779bdc38c8a79b006665ba623c6e2db.1701426993.git.wangyunjian@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/2be401c77779bdc38c8a79b006665ba623c6e2db.1701426993.git.wangyunjian@huawei.com", "date": "2023-12-01T10:46:49", "name": "[1/1] net/iavf: fix memoy leak in error path", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9667378217429c00b1bc801abb9df6f6be5a7130", "submitter": { "id": 551, "url": "http://patches.dpdk.org/api/people/551/?format=api", "name": "Yunjian Wang", "email": "wangyunjian@huawei.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/2be401c77779bdc38c8a79b006665ba623c6e2db.1701426993.git.wangyunjian@huawei.com/mbox/", "series": [ { "id": 30430, "url": "http://patches.dpdk.org/api/series/30430/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30430", "date": "2023-12-01T10:46:49", "name": "[1/1] net/iavf: fix memoy leak in error path", "version": 1, "mbox": "http://patches.dpdk.org/series/30430/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/134744/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/134744/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 03F054341B;\n\tFri, 1 Dec 2023 11:46:57 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9DB3F402B9;\n\tFri, 1 Dec 2023 11:46:57 +0100 (CET)", "from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])\n by mails.dpdk.org (Postfix) with ESMTP id A0DD940289;\n Fri, 1 Dec 2023 11:46:55 +0100 (CET)", "from dggpemm500008.china.huawei.com (unknown [172.30.72.54])\n by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4ShV484FrQzMnft;\n Fri, 1 Dec 2023 18:42:00 +0800 (CST)", "from localhost (10.174.242.157) by dggpemm500008.china.huawei.com\n (7.185.36.136) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 1 Dec\n 2023 18:46:53 +0800" ], "From": "Yunjian Wang <wangyunjian@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<jingjing.wu@intel.com>, <beilei.xing@intel.com>, <xudingke@huawei.com>,\n <jerry.lilijun@huawei.com>, Yunjian Wang <wangyunjian@huawei.com>,\n <stable@dpdk.org>", "Subject": "[PATCH 1/1] net/iavf: fix memoy leak in error path", "Date": "Fri, 1 Dec 2023 18:46:49 +0800", "Message-ID": "\n <2be401c77779bdc38c8a79b006665ba623c6e2db.1701426993.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.242.157]", "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n dggpemm500008.china.huawei.com (7.185.36.136)", "X-CFilter-Loop": "Reflected", "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": "In iavf_security_ctx_create() allocated memory for the\n'security_ctx', we should free it when memory malloc for\nthe 'iavf_security_ctx' fails, otherwise it will lead to\nmemory leak.\n\nFixes: 6bc987ecb860 (\"net/iavf: support IPsec inline crypto\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n drivers/net/iavf/iavf_ipsec_crypto.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/iavf/iavf_ipsec_crypto.c b/drivers/net/iavf/iavf_ipsec_crypto.c\nindex 07a69db540..d6c0180ffd 100644\n--- a/drivers/net/iavf/iavf_ipsec_crypto.c\n+++ b/drivers/net/iavf/iavf_ipsec_crypto.c\n@@ -1518,8 +1518,11 @@ iavf_security_ctx_create(struct iavf_adapter *adapter)\n \tif (adapter->security_ctx == NULL) {\n \t\tadapter->security_ctx = rte_malloc(\"iavf_security_ctx\",\n \t\t\t\tsizeof(struct iavf_security_ctx), 0);\n-\t\tif (adapter->security_ctx == NULL)\n+\t\tif (adapter->security_ctx == NULL) {\n+\t\t\trte_free(adapter->vf.eth_dev->security_ctx);\n+\t\t\tadapter->vf.eth_dev->security_ctx = NULL;\n \t\t\treturn -ENOMEM;\n+\t\t}\n \t}\n \n \treturn 0;\n", "prefixes": [ "1/1" ] }{ "id": 134744, "url": "