]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mvpp2: remove module bugfix
authorSven Auhagen <sven.auhagen@voleatech.de>
Tue, 16 Jun 2020 04:35:29 +0000 (06:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:16 +0000 (17:49 +0200)
commit8db9849ddfb8a2abdd7c5b0249e312569dc38bff
treea4d5291b67161ec77665002f94fce262b56c2cc2
parent4f8d723f871edb95a05d43ad88faf406c66393db
mvpp2: remove module bugfix

[ Upstream commit 807eaf99688ce162a98a7501477644782d4af098 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c