On 04/28/2017 07:14 AM, David Miller wrote:
> From: Herbert Xu <[email protected]>
> Date: Fri, 28 Apr 2017 14:10:48 +0800
> 
>> The commit 6d684e54690c ("rhashtable: Cap total number of entries
>> to 2^31") breaks rhashtable users that do not set max_size.  This
>> is because when max_size is zero max_elems is also incorrectly set
>> to zero instead of 2^31.
>>
>> This patch fixes it by only lowering max_elems when max_size is not
>> zero.
>>
>> Fixes: 6d684e54690c ("rhashtable: Cap total number of entries to 2^31")
>> Reported-by: Florian Fainelli <[email protected]>
>> Reported-by: kernel test robot <[email protected]>
>> Signed-off-by: Herbert Xu <[email protected]>

Tested-by: Florian Fainelli <[email protected]>

Thanks Herbert
-- 
Florian

Reply via email to