Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125216/?format=api
https://patches.dpdk.org/api/patches/125216/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230316212904.9318-6-syalavarthi@marvell.com/", "project": { "id": 1, "url": "https://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": "<20230316212904.9318-6-syalavarthi@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230316212904.9318-6-syalavarthi@marvell.com", "date": "2023-03-16T21:29:01", "name": "[v3,5/8] ml/cnxk: fix potential memory leak in xstats", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "96a70352de3b2767985efe647fdf8e77f2662db2", "submitter": { "id": 2480, "url": "https://patches.dpdk.org/api/people/2480/?format=api", "name": "Srikanth Yalavarthi", "email": "syalavarthi@marvell.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230316212904.9318-6-syalavarthi@marvell.com/mbox/", "series": [ { "id": 27429, "url": "https://patches.dpdk.org/api/series/27429/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27429", "date": "2023-03-16T21:28:56", "name": "Fixes to ml/cnxk driver", "version": 3, "mbox": "https://patches.dpdk.org/series/27429/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/125216/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/125216/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 3FBE241EB5;\n\tThu, 16 Mar 2023 22:30:12 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DF09842FB4;\n\tThu, 16 Mar 2023 22:29:46 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 92AFE40DF6\n for <dev@dpdk.org>; Thu, 16 Mar 2023 22:29:39 +0100 (CET)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 32GFtBbe005959 for <dev@dpdk.org>; Thu, 16 Mar 2023 14:29:38 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pbxq2ucrk-4\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 16 Mar 2023 14:29:38 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42;\n Thu, 16 Mar 2023 14:29:36 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend\n Transport; Thu, 16 Mar 2023 14:29:35 -0700", "from ml-host-33.caveonetworks.com (unknown [10.110.143.233])\n by maili.marvell.com (Postfix) with ESMTP id ED8CB3F708F;\n Thu, 16 Mar 2023 14:29:35 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=wtXoXKm0PtwCPi3upxBKk5UZ5Dqyol3NXycmb/V7RQo=;\n b=bVwnfORvbHG9SCSmlbXdSzpM4FCJQWjUQang+mRzRTAbEZX3sD+bEsM67LNEndooLg+Z\n ZSuNw7GyseNbhdfqnPkUdiXgRpcF+QT54Y0zmBz8bFq95JgkVvDOkzFXtEBTR6SOkdL0\n 0TS2Gc90f/TP9rE8dtt2gyKtxfuR51bQVFBLPDSyz5caTQ/rYCSbxvfVv1sAlEM+SnL1\n YIwgLdzV9b/q0XHhXmx8agX7pTfKbcIob4pcoI2XBbShxAwmo0WywaCD+Dj6LeFdBWbO\n pu01t/omW0XMKR9YvaCnnczwk2l2cwaBRm2Mb5Rs2vyVJBQHf36pz+TTvyfwQ3Y5Vx8Y BQ==", "From": "Srikanth Yalavarthi <syalavarthi@marvell.com>", "To": "Srikanth Yalavarthi <syalavarthi@marvell.com>, Prince Takkar\n <ptakkar@marvell.com>", "CC": "<dev@dpdk.org>, <sshankarnara@marvell.com>, <aprabhu@marvell.com>,\n <pshukla@marvell.com>", "Subject": "[PATCH v3 5/8] ml/cnxk: fix potential memory leak in xstats", "Date": "Thu, 16 Mar 2023 14:29:01 -0700", "Message-ID": "<20230316212904.9318-6-syalavarthi@marvell.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20230316212904.9318-1-syalavarthi@marvell.com>", "References": "<20230315135427.11489-1-syalavarthi@marvell.com>\n <20230316212904.9318-1-syalavarthi@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-GUID": "q5D5HfHgXNaqHz9EH52a6So2aqEnewrr", "X-Proofpoint-ORIG-GUID": "q5D5HfHgXNaqHz9EH52a6So2aqEnewrr", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-03-16_14,2023-03-16_02,2023-02-09_01", "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": "Local buffer xstats_map is not released, when the xstats name\npassed by the user application is not valid. This patch releases\nthe memory in such cases.\n\nFixes: 4ff4ab8e1a20 (\"ml/cnxk: support extended statistics\")\n\nSigned-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>\n---\n drivers/ml/cnxk/cn10k_ml_ops.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c\nindex 8d31276e8c..4df2ca0e8c 100644\n--- a/drivers/ml/cnxk/cn10k_ml_ops.c\n+++ b/drivers/ml/cnxk/cn10k_ml_ops.c\n@@ -1128,8 +1128,10 @@ cn10k_ml_dev_xstats_by_name_get(struct rte_ml_dev *dev, const char *name, uint16\n \t\t}\n \t}\n \n-\tif (id == PLT_DIM(cn10k_ml_model_xstats_table) * dev_info.max_models)\n+\tif (id == PLT_DIM(cn10k_ml_model_xstats_table) * dev_info.max_models) {\n+\t\trte_free(xstats_map);\n \t\treturn -EINVAL;\n+\t}\n \n \tmodel_id = id / PLT_DIM(cn10k_ml_model_xstats_table);\n \ttype = id % PLT_DIM(cn10k_ml_model_xstats_table);\n", "prefixes": [ "v3", "5/8" ] }{ "id": 125216, "url": "