From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 253FC1B722 for ; Fri, 9 Feb 2018 11:41:29 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id o76so4606692wrb.7 for ; Fri, 09 Feb 2018 02:41:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fXm49/IbRTq2gLoZt9Law3d4c/EzrGCkg63FUTfFmq0=; b=Y0mrE0DrQd/7KvPdlT1hJvq1whpetJL67fx7dqE3ipumI7p791o/F+sCHkAHi35/0c fJIjspI2ZNJpgHREUlxxpQhroRkk010oR8IYoJZS6kgwYII7FtDbV7XFZxoV1frrBFaQ 6zjzwOmBP749sQA9qGO8qfraotWH2Ui/Yjxdf0hOBDHMmbDqDXc5Q7N34GPYxTxMcjpk BBnvh+xGS2GJm4agbK6/r7rYxjlwOg6h+Ug+KJTemI8qeR0fBzp/4xONBzVLCUeWIQOO zD7T+LBuhn3aOBf8KJ3luK2vuoa1oJ/ebPrySmNbzOFA4qW7CDvA5aTBMT3QuFf5cknx 6VRw== X-Gm-Message-State: APf1xPBQolxBF4r5QfhLvoBJrCid8M8/z5yTI+gVTlX0t3VxWaEHPfya e5dUetNb/v104DJMEG8SGtfUhadIobo= X-Google-Smtp-Source: AH8x226SaVaTbonjgP7x1qJf2vxPeNNFm4YayCxs4w8xfYBUChEzMNHKUv2vnr3Mo5u+h137r/TUfw== X-Received: by 10.223.154.105 with SMTP id z96mr2089071wrb.282.1518172888836; Fri, 09 Feb 2018 02:41:28 -0800 (PST) Received: from localhost ([2a00:23c5:bef3:400:9531:588b:44ae:bec4]) by smtp.gmail.com with ESMTPSA id w50sm3743151wrb.33.2018.02.09.02.41.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 02:41:28 -0800 (PST) From: Luca Boccassi To: Beilei Xing Cc: John McNamara , Jingjing Wu , Helin Zhang , dpdk stable Date: Fri, 9 Feb 2018 10:40:30 +0000 Message-Id: <20180209104031.23195-3-bluca@debian.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180209104031.23195-1-bluca@debian.org> References: <20180207164705.29052-1-luca.boccassi@gmail.com> <20180209104031.23195-1-bluca@debian.org> Subject: [dpdk-stable] patch 'net/i40e: check multi-driver option parsing' has been queued to LTS release 16.11.5 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 10:41:29 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/11/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 6b82e58d019b1522c624ba7c8e2875c1c44a4d08 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Thu, 8 Feb 2018 21:18:12 +0800 Subject: [PATCH] net/i40e: check multi-driver option parsing [ upstream commit 7469a495aec98082bcd4219cf7a25c6c3867c11a ] This patch fixes the coverity CHECKED_RETURN issue. Coverity issue: 261779 Fixes: cfdfca493cae ("net/i40e: fix multiple driver support") Reported-by: John McNamara Signed-off-by: Beilei Xing Acked-by: Jingjing Wu Acked-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6df9b4600..0b270b690 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1016,8 +1016,12 @@ i40e_support_multi_driver(struct rte_eth_dev *dev) "the first invalid or last valid one is used !", ETH_I40E_SUPPORT_MULTI_DRIVER); - rte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER, - i40e_parse_multi_drv_handler, pf); + if (rte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER, + i40e_parse_multi_drv_handler, pf) < 0) { + rte_kvargs_free(kvlist); + return -EINVAL; + } + rte_kvargs_free(kvlist); return 0; } -- 2.14.2