]> 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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 9 Dec 2021 10:10:42 +0000 (11:10 +0100)
commit4830a50fc90308f2ceadd43ecf9f08ada046c179
treeb927982beb715cf650252b0f54d3cbefa6fcf56d
parent8be9afb9c38f4f09440a0a99b091c105ced76fc3
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