Re: [PATCH] rhashtable: fix shift by 64 when shrinking
From: Vegard Nossum Date: Fri, 12 Aug 2016 20:10:44 +0200 > I got this: ... > roundup_pow_of_two() is undefined when called with an argument of 0, so > let's avoid the call and just fall back to ht->p.min_size (which should > never be smaller than HASH_MIN_SIZE). > > Cc: Herbert Xu > Signed-of
Re: [PATCH] rhashtable: fix shift by 64 when shrinking
On Fri, Aug 12, 2016 at 08:10:44PM +0200, Vegard Nossum wrote: > I got this: > > > > UBSAN: Undefined behaviour in ./include/linux/log2.h:63:13 > shift exponent 64 is too large for 64-bit type 'long unsig