From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id F38EC1B5EA for ; Thu, 2 Nov 2017 19:57:29 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Nov 2017 11:57:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,335,1505804400"; d="scan'208";a="331248445" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.241.226.36]) ([10.241.226.36]) by fmsmga004.fm.intel.com with ESMTP; 02 Nov 2017 11:57:28 -0700 To: Tomasz Duszynski , dev@dpdk.org References: <1509611845-19698-1-git-send-email-tdu@semihalf.com> From: Ferruh Yigit Message-ID: <46ddd614-26cd-0bdb-1a12-8ab7141b7d8c@intel.com> Date: Thu, 2 Nov 2017 11:57:27 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1509611845-19698-1-git-send-email-tdu@semihalf.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/mrvl: reset errno before library call X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 18:57:30 -0000 On 11/2/2017 1:37 AM, Tomasz Duszynski wrote: > In case errno contains some non-zero value and call to strtoul() is > successful -2 error will be returned. > > Setting errno to zero before calling strtoul() makes sure > errors will be handled correctly. > > Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") > > Signed-off-by: Tomasz Duszynski Applied to dpdk-next-net/master, thanks.