# Re: \[PATCH net\] mvpp2: fix panic on module removal

- From: David Miller \<davem@davemloft.net\>
- Date: 2019-08-05 17:58:03 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/08/5678705
- Thread: https://ratatoskr.run/netdev/2019/07/5674047/t.md

```text
From: Matteo Croce <redacted>
Date: Wed, 31 Jul 2019 20:31:16 +0200

> mvpp2 uses a delayed workqueue to gather traffic statistics.
> On module removal the workqueue can be destroyed before calling
> cancel_delayed_work_sync() on its works.
> Fix it by moving the destroy_workqueue() call after mvpp2_port_remove().

Please post a new version with the flush_workqueue() removed.
```
