mvpp2: remove module bugfix
authorSven Auhagen <sven.auhagen@voleatech.de>
Tue, 16 Jun 2020 04:35:29 +0000 (06:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2020 20:41:16 +0000 (13:41 -0700)
commit807eaf99688ce162a98a7501477644782d4af098
tree1fb9b785a88c4e51a7603a50144b2dbd49220619
parent662051215c758ae8545451628816204ed6cd372d
mvpp2: remove module bugfix

The remove function does not destroy all
BM Pools when per cpu pool is active.

When reloading the mvpp2 as a module the BM Pools
are still active in hardware and due to the bug
have twice the size now old + new.

This eventually leads to a kernel crash.

v2:
* add Fixes tag

Fixes: 7d04b0b13b11 ("mvpp2: percpu buffers")
Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c