From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 443B88E68 for ; Mon, 16 May 2016 18:39:40 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id a17so145341352wme.0 for ; Mon, 16 May 2016 09:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=KJucfwvzfFwAwMGExtfd5dALAEil3hHLsTk7X6rUYLk=; b=hIqiq6Z2uQxZd1MJ42nhold7F9aHnHL9W0rgDKjjQlGAtUgCZVP8vbn9vst0le/cPK 49f2b71lafmJ2qIaNYDpp8KkvroMVeNr6QWvakpXrPyW684qe/Z65CAtuVBvraeenp/p uVR5oUBRuKNiO3QLXSONX4Qo53toS/dn3T4zkhG8h4MoaXzkL1qO14mFUfrxU/HUuB70 cq3gRrVffqsERQuf0wVVhd89WebxN5Tpa37ir9uQQ69TignIiZvDBxtJxiLeTL1kvy5S CLQWIv9R+qMjqDhn7hy/FyjnKPD5ml5TB3lG/6THTyz1KkfVrf8ohPx51BiGVudBgfDw dAEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=KJucfwvzfFwAwMGExtfd5dALAEil3hHLsTk7X6rUYLk=; b=ixzJ4/Ilm60Sm2TdtQfvjnnKFfzVpt8vIxKk5Xy31U9pn1M62mTtNqhU574/e6kL/R 15xB6L0MeiNuElwPreky8UzPTQAEcLY2RyvecIFX7EcZGsOYGleE0atBhqJrGZPSYGF8 +sxB4BThs2Ytyw0B9H56ArIFdiThvQKO0Pdlnc/SgVNAfQqSOJTRBiOwQO3EURz0cIZC oO9OTt6vBRkGMNTZ99hn7qXCUE88IOib0qxtwmGLK//C49Vu5N5jcOtNtUUSga14eK9a lscmsS+RzLnxTttm7hwsuivUNdAC7JcHthAjo1Uh3bOlwv2pnAEkKUvT8Emo5lkJiVcC rPaw== X-Gm-Message-State: AOPr4FUSmBi1HVtt6p4LuZhvk0iydUHZ9R+C+gi3bj/waFldEjGuy7FOu8V4aq7peFyYtb2N X-Received: by 10.194.175.36 with SMTP id bx4mr30659128wjc.35.1463416780035; Mon, 16 May 2016 09:39:40 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id v143sm19223170wmv.4.2016.05.16.09.39.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 May 2016 09:39:39 -0700 (PDT) From: Thomas Monjalon To: "Mrozowicz, SlawomirX" Cc: dev@dpdk.org, "Dumitrescu, Cristian" , "Singh, Jasvinder" Date: Mon, 16 May 2016 18:39:38 +0200 Message-ID: <2100062.7K4NYJbD6d@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D89126479BB334@IRSMSX108.ger.corp.intel.com> References: <1462956485-3701-1-git-send-email-slawomirx.mrozowicz@intel.com> <3EB4FA525960D640B5BDFFD6A3D89126479BB334@IRSMSX108.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4] examples/qos_sched: fix bad bit shift operation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2016 16:39:40 -0000 > > Fix issue reported by Coverity. > > > > Coverity ID 30690: Bad bit shift operation > > large_shift: In expression 1ULL << i, left shifting by more than 63 bits > > has undefined behavior. The shift amount, i, is as much as 127. > > > > Fixes: de3cfa2c9823 ("sched: initial import") > > > > Signed-off-by: Slawomir Mrozowicz > > Acked-by: Cristian Dumitrescu Applied, thanks