]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8ef3c3cf6fbdf209f13f46f8d32a66f661aa3c1
tree1fb9b785a88c4e51a7603a50144b2dbd49220619
parent30e517f6e9f3d863fad70942bc86bc4b74ca2209
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: c152ff3f89b9 ("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