From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 5AC4F37A0 for ; Tue, 20 Jun 2017 13:36:49 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id y7so22248290pfd.3 for ; Tue, 20 Jun 2017 04:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sz9XxsKPSq6wbPYCWACgCOPTsoIGMb8CO6Z9hQyFXWo=; b=crMWpnt83zfSxJL35ltnQf722CaRwD+Vd4Y3ZN3mWfHjajIdopbL1vuMZ1yZZgo/TI 2W4q6sEO+Wggp6Ke8RHRuRbDKRw24qe9TVxL2wOyuvT2x9+YOO9MEtZ4miyeyaQ3DAyF xbcL5TgxvzpCgKlNKltuFrG1M2nQGAQO8ElRUQK5zs1L4GPKKl9APqvSvTVXD3fiLiPP wKG7ajL+D+aFB7kamPbh877WvduvO+DvPMYaDhDY8/jTm9Q2JjyrKCRkILrik6xUBpEp y5k5Y9D8phql1leuL5YGPsmAJNZYrw4mOfvtzXg4+4cG/FMlUNd42ir2ifPz/7f6c4eQ zwOQ== 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=sz9XxsKPSq6wbPYCWACgCOPTsoIGMb8CO6Z9hQyFXWo=; b=QQhJ6ViLizABpOwzzpIGZlk7lpswhOtKb6VBGjzzOaL7hKQrvelQ1mY/cEoudQnpbZ 76YF9R2rtnjZY3z9t139KKbEtsuYjOJGFFndME1f51K2ftnwrwUU929ZQu0HBhUBK9Db Q95ignv3NdK6D+zhdR06I9eCn7dQir81GDio+WI3BTPgf3KB1LGdSJNnx45ua1yj/6TK bUtRe6UgtRENaurrJ1wRftW5W8Al3yW/P+idXbNCvnD/33iSxVTulYDND5TCT7CtuARW x84T1QoukC/D0LrRX5YHj37EyX8R2xwdaEB14ObkLzDpHHGviu+bOpE/wE/hphP/Lr3w nx/A== X-Gm-Message-State: AKS2vOwOtJr4/ani9BnhPd71lBbaHbkYqg/mY5MeH5t1QDJ4XzYON/ig QjppWK/2QQGtBpkH X-Received: by 10.98.75.215 with SMTP id d84mr29887414pfj.135.1497958608710; Tue, 20 Jun 2017 04:36:48 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.36.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:36:47 -0700 (PDT) From: Yuanhan Liu To: John Miller Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:21 +0800 Message-Id: <1497958550-13600-9-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ark: fix return value of null not checked' has been queued to stable release 17.05.1 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: Tue, 20 Jun 2017 11:36:49 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From d3701ee0a3849335b6da07b942c100dc257b5d99 Mon Sep 17 00:00:00 2001 From: John Miller Date: Tue, 16 May 2017 12:14:18 -0400 Subject: [PATCH] net/ark: fix return value of null not checked [ upstream commit 2f3b88fbabc580ba9501be900ba9e7f95508ac09 ] Coverity issue: 144517 Fixes: 1131cbf0fb2b ("net/ark: stub PMD for Atomic Rules Arkville") Signed-off-by: John Miller --- drivers/net/ark/ark_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index f8fb359..017817e 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -899,6 +899,12 @@ process_file_args(const char *key, const char *value, void *extra_args) int size = 0; int first = 1; + if (file == NULL) { + PMD_DRV_LOG(ERR, "Unable to open " + "config file %s\n", value); + return -1; + } + while (fgets(line, sizeof(line), file)) { size += strlen(line); if (size >= ARK_MAX_ARG_LEN) { -- 2.7.4