From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B7FEF235 for ; Tue, 21 Nov 2017 14:31:40 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6B68620CBF; Tue, 21 Nov 2017 08:31:40 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:31:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=NcQAEv2xX5w1d+j34 NDGuZmeF+zg0NfsWZrflrn1t5U=; b=sFYQQxIOZYnbmCbt3S4UHFcHBCCiKW125 FiDh9cVxxXSFTlX66RfpXXDSZqVeKU05IDKRBrHzFYtpUAQD2y9rZvSY9empdTwy /fQj7ZUDJ4GfJswP1R9vER/dKoAC7znV6wy+eff/nSXD1hG6N8yeoDE7n2W0Ko95 rDGP5lvE7IlA6XKuTbFjSo2LxkkJ2l0v/TrWpWpuqWyW5JL59qPxxiddBRbUjA0z NxScaGgvgOxe7y+8o/3PhHcMsx7GGeIsSLZ4H5FXm6ghHkCqH99DpyoH5AgvaBYQ Dxqy2fNsyHVQIl/4T6IIzuimEzqz76A+zfaBZfqhWpLAfuhTqKf8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=NcQAEv2xX5w1d+j34NDGuZmeF+zg0NfsWZrflrn1t5U=; b=TFppv9Ub bTDGKxy8V7xE8zwvNpI6xAA0/x+FFugKZmdyefJoCePD7aaXjzU46qBOgCB+goas Jbmrm3oAhaCmkY38jU13NknPtm689E14hq2snxNWJG56RedITlpqazKJCCJqTX8A wFI4DhF0Pu5CHO8gNiHwJ5/JvCF4TsXLYb4NeI79yutfrPUyeSQWWDMWMpCCtB1b Al2FLpMnnCzFQhN3VoRveI2nafBCcxQqlMsLY8gQi9Srm90iG8Hzn8NkP4V5rqbk 3+dXB4o9splXXSy78m5mG4d3VGpNk8gLGKGqKp1YYJAJMKZCIRwL7Ynyt+AZ92XG Bu3d04ngTGF9cA== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 5348524631; Tue, 21 Nov 2017 08:31:34 -0500 (EST) From: Yuanhan Liu To: Rasesh Mody Cc: dpdk stable Date: Tue, 21 Nov 2017 21:18:52 +0800 Message-Id: <1511270333-31002-190-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/qede/base: fix division by zero' has been queued to stable release 17.08.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, 21 Nov 2017 13:31:41 -0000 Hi, FYI, your patch has been queued to stable release 17.08.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 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 1cfbc439b6d9bf1f4d220b0760371affe67d108d Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Tue, 7 Nov 2017 00:34:24 -0800 Subject: [PATCH] net/qede/base: fix division by zero [ upstream commit 5b5f9675d332f192388a9e89a779b0285139e0e2 ] Fix division by zero in calculating the regpair elements per page Remove unused API ecore_cxt_free_proto_ilt() Coverity issue: 1379423, 1379428 Fixes: 22d07d939c3c ("net/qede/base: update") Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_cxt.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/drivers/net/qede/base/ecore_cxt.c b/drivers/net/qede/base/ecore_cxt.c index 688118b..cec4aee 100644 --- a/drivers/net/qede/base/ecore_cxt.c +++ b/drivers/net/qede/base/ecore_cxt.c @@ -69,6 +69,7 @@ union type0_task_context { /* TYPE-1 task context - ROCE */ union type1_task_context { + struct regpair reserved; /* @DPDK */ }; struct src_ent { @@ -2220,34 +2221,3 @@ ecore_cxt_free_ilt_range(struct ecore_hwfn *p_hwfn, return ECORE_SUCCESS; } - -enum _ecore_status_t ecore_cxt_free_proto_ilt(struct ecore_hwfn *p_hwfn, - enum protocol_type proto) -{ - enum _ecore_status_t rc; - u32 cid; - - /* Free Connection CXT */ - rc = ecore_cxt_free_ilt_range(p_hwfn, ECORE_ELEM_CXT, - ecore_cxt_get_proto_cid_start(p_hwfn, - proto), - ecore_cxt_get_proto_cid_count(p_hwfn, - proto, - &cid)); - - if (rc) - return rc; - - /* Free Task CXT */ - rc = ecore_cxt_free_ilt_range(p_hwfn, ECORE_ELEM_TASK, 0, - ecore_cxt_get_proto_tid_count(p_hwfn, - proto)); - if (rc) - return rc; - - /* Free TSDM CXT */ - rc = ecore_cxt_free_ilt_range(p_hwfn, ECORE_ELEM_SRQ, 0, - ecore_cxt_get_srq_count(p_hwfn)); - - return rc; -} -- 2.7.4