From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 156EA4CA0 for ; Mon, 14 Jan 2019 23:55:45 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A792B25B7A; Mon, 14 Jan 2019 17:55:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 14 Jan 2019 17:55:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=xCuBqVQCV7PKXrdLp0AWp5XH87MmIFCtwn3+T+MoDtM=; b=ChF5Y9ym38pu wVupvGUgx74s8xz9Hgje4P+MHwH8YvkaZmv0IidwLeHymP/k4X+5WEKcpkNYhEZ3 O7Ftt4/EVTbyoY1TlGfOwcVAEQOvZtHyWB7ikO/AFRm+lQRZRfZ1f8DR/OobUnMo yDmbe6Rp2V7db1FkHR8SDKNq0GsMA/c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=xCuBqVQCV7PKXrdLp0AWp5XH87MmIFCtwn3+T+MoD tM=; b=SXVQVqYthYK2U9z4olecVpUQiQmYh2zDePV7Dk2x7dFJNL+lRKjf/w8OQ FrwIt7/fdNxuS7Xr4PTaTW9IVnD8qJCaT48hNTyw2iUvvaXdJ2ay6EgiU9lN8CX7 SLnsYhHs9vaYb6jK5TijFdzosBcSrB/BqnEzqtEiNez6LBa+1ubwrp8Fsnj5e3XI 1SDfHxNOjZeh7OAnOwDIng9713vUS8dXRkNj2HbZLKUz+Hyg1sm8o2V9Va7gaLvb c0tVpPMJSjphSyGKHoa3D/ZgunTm8NotdcqLoZ4lkT2d/R+/1VOij9KTnzqhImPV lPbi6EogYF9x7IEaEnhj6sLOP/idQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgedvgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgjfh gggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceo thhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfe drudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A987610085; Mon, 14 Jan 2019 17:55:43 -0500 (EST) From: Thomas Monjalon To: David Hunt Cc: dev@dpdk.org, liang.j.ma@intel.com Date: Mon, 14 Jan 2019 23:55:42 +0100 Message-ID: <2167091.PfAfiXdk1Q@xps> In-Reply-To: <20190107144023.7041-1-david.hunt@intel.com> References: <20190107144023.7041-1-david.hunt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] lib/power: fix return code to unsigned value 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: Mon, 14 Jan 2019 22:55:45 -0000 07/01/2019 15:40, David Hunt: > The power_pstate_cpufreq_freqs() function was returning -1 in an > unsigned int, causing buffer over-runs when the results were being > processed. This function should be returning zero for all error > conditions, similar to it's acpi relation, power_acpi_cpufreq_freqs(). > > Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility") > > Signed-off-by: David Hunt Applied, thanks