From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Lebrun Subject: Re: [PATCH] ipv6: sr: fix useless rol32 call on hash Date: Tue, 17 Jul 2018 17:03:13 +0100 Message-ID: <6ab9af97-33b6-d5cc-d1e9-6e5fbd9158a8@gmail.com> References: <20180717155254.30367-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: Colin King , "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org Return-path: In-Reply-To: <20180717155254.30367-1-colin.king@canonical.com> Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 07/17/2018 04:52 PM, Colin King wrote: > From: Colin Ian King > > The rol32 call is currently rotating hash but the rol'd value is > being discarded. I believe the current code is incorrect and hash > should be assigned the rotated value returned from rol32. > > Detected by CoverityScan, CID#1468411 ("Useless call") > > Fixes: b5facfdba14c ("ipv6: sr: Compute flowlabel for outer IPv6 header of seg6 encap mode") > Signed-off-by: Colin Ian King Acked-by: dlebrun@google.com Good catch, thanks ! In that case, the same issue is present in include/net/ipv6.h:ip6_make_flowlabel().