[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190801071801.GF3579@kwain>
Date: Thu, 1 Aug 2019 09:18:01 +0200
From: Antoine Tenart <antoine.tenart@...tlin.com>
To: Matteo Croce <mcroce@...hat.com>
Cc: netdev@...r.kernel.org,
Miquel Raynal <miquel.raynal@...e-electrons.com>,
linux-kernel@...r.kernel.org,
Lorenzo Bianconi <lorenzo@...nel.org>,
Antoine Tenart <antoine.tenart@...tlin.com>,
Maxime Chevallier <maxime.chevallier@...tlin.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH net] mvpp2: fix panic on module removal
Hi Matteo,
On Wed, Jul 31, 2019 at 08:31:16PM +0200, Matteo Croce wrote:
>
> diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> index c51f1d5b550b..5002d51fc9d6 100644
> --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
> @@ -5760,7 +5760,6 @@ static int mvpp2_remove(struct platform_device *pdev)
> mvpp2_dbgfs_cleanup(priv);
>
> flush_workqueue(priv->stats_queue);
> - destroy_workqueue(priv->stats_queue);
>
> fwnode_for_each_available_child_node(fwnode, port_fwnode) {
> if (priv->port_list[i]) {
> @@ -5770,6 +5769,8 @@ static int mvpp2_remove(struct platform_device *pdev)
> i++;
> }
Shouldn't you also move flush_workqueue() here?
> + destroy_workqueue(priv->stats_queue);
> +
> for (i = 0; i < MVPP2_BM_POOLS_NUM; i++) {
> struct mvpp2_bm_pool *bm_pool = &priv->bm_pools[i];
Thanks!
Antoine
--
Antoine Ténart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists