Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35067/?format=api
http://patches.dpdk.org/api/patches/35067/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1518095892-61961-1-git-send-email-beilei.xing@intel.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": "<1518095892-61961-1-git-send-email-beilei.xing@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1518095892-61961-1-git-send-email-beilei.xing@intel.com", "date": "2018-02-08T13:18:12", "name": "[dpdk-dev] net/i40e: fix unchecked return in parse devarg", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1e71c4aef510eaf7ba8704ad9681a55985c4fc83", "submitter": { "id": 410, "url": "http://patches.dpdk.org/api/people/410/?format=api", "name": "Xing, Beilei", "email": "beilei.xing@intel.com" }, "delegate": { "id": 24, "url": "http://patches.dpdk.org/api/users/24/?format=api", "username": "helin_zhang", "first_name": "Helin", "last_name": "Zhang", "email": "helin.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1518095892-61961-1-git-send-email-beilei.xing@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35067/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/35067/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A7B591B76A;\n\tThu, 8 Feb 2018 14:17:38 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id F1F7E1B768\n\tfor <dev@dpdk.org>; Thu, 8 Feb 2018 14:17:36 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Feb 2018 05:17:35 -0800", "from unknown (HELO dpdk9.sh.intel.com) ([10.67.118.52])\n\tby fmsmga008.fm.intel.com with ESMTP; 08 Feb 2018 05:17:34 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.46,478,1511856000\"; d=\"scan'208\";a=\"16483904\"", "From": "Beilei Xing <beilei.xing@intel.com>", "To": "jingjing.wu@intel.com,\n\tdev@dpdk.org,\n\tqi.z.zhang@intel.com", "Date": "Thu, 8 Feb 2018 21:18:12 +0800", "Message-Id": "<1518095892-61961-1-git-send-email-beilei.xing@intel.com>", "X-Mailer": "git-send-email 2.5.5", "Subject": "[dpdk-dev] [PATCH] net/i40e: fix unchecked return in parse devarg", "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch fixes the coverity CHECKED_RETURN issue.\n\nCoverity issue: 261779\nFixes: cfdfca493cae (\"net/i40e: fix multiple driver support\")\n\nReported-by: John McNamara <john.mcnamara@intel.com>\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 65a4b7a..508b417 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1107,8 +1107,12 @@ i40e_support_multi_driver(struct rte_eth_dev *dev)\n \t\t\t \"the first invalid or last valid one is used !\",\n \t\t\t ETH_I40E_SUPPORT_MULTI_DRIVER);\n \n-\trte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER,\n-\t\t\t i40e_parse_multi_drv_handler, pf);\n+\tif (rte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER,\n+\t\t\t i40e_parse_multi_drv_handler, pf) < 0) {\n+\t\trte_kvargs_free(kvlist);\n+\t\treturn -EINVAL;\n+\t}\n+\n \trte_kvargs_free(kvlist);\n \treturn 0;\n }\n", "prefixes": [ "dpdk-dev" ] }{ "id": 35067, "url": "