]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:09 +0000 (09:49 +0100)
commitee27001fafe787f9af16a3dbd26e635dee1ae489
treedc3d573be2c013eec99e2aab93d5fe3601680a19
parentb78f69cacbb17f7cb29e199ed6d91b0fd6321c06
net: marvell: mvpp2: Fix the computation of shared CPUs

BugLink: https://bugs.launchpad.net/bugs/1953731
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c