net: marvell: mvpp2: Fix the computation of shared CPUs
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 29 Nov 2021 21:53:27 +0000 (22:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:49 +0000 (09:04 +0100)
commit686578a1bac1251dfaf7c3db98d6d1802cc8d6cc
treeae3f9fe448ccde89d84f6b1aac6e9b81afebee1b
parent231117a527131922263f109abbd3f958764b72bc
net: marvell: mvpp2: Fix the computation of shared CPUs

commit b83f5ac7d922e69a109261f5f940eebbd4e514c4 upstream.

'bitmap_fill()' fills a bitmap one 'long' at a time.
It is likely that an exact number of bits is expected.

Use 'bitmap_set()' instead in order not to set unexpected bits.

Fixes: e531f76757eb ("net: mvpp2: handle cases where more CPUs are available than s/w threads")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c