[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJZOPZLfiBR_ibMXpsec2U59hxoaqQoBVDOcGkr20mqtM5NYow@mail.gmail.com>
Date: Mon, 2 Dec 2013 22:11:52 +0200
From: Or Gerlitz <or.gerlitz@...il.com>
To: Wei Yang <weiyang@...ux.vnet.ibm.com>
Cc: David Miller <davem@...emloft.net>,
Amir Vadai <amirv@...lanox.com>,
Jack Morgenstein <jackm@....mellanox.co.il>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] net/mlx4_core: destroy workqueue when driver fails to register
On Mon, Dec 2, 2013 at 3:44 AM, Wei Yang <weiyang@...ux.vnet.ibm.com> wrote:
> When driver registration fails, we need to clean up the resources allocated
> before. mlx4_core missed to destroy the workqueue allocated.
please use "missed destroying" instead of "missed to destroy"
>
> This patch destroies the workqueue when registration fails.
please s/destroies/destroys/
>
> Signed-off-by: Wei Yang <weiyang@...ux.vnet.ibm.com>
> ---
> drivers/net/ethernet/mellanox/mlx4/main.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
> index 5789ea2..01fc651 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/main.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/main.c
> @@ -2635,6 +2635,8 @@ static int __init mlx4_init(void)
> return -ENOMEM;
>
> ret = pci_register_driver(&mlx4_driver);
> + if (ret < 0)
> + destroy_workqueue(mlx4_wq);
> return ret < 0 ? ret : 0;
> }
>
> --
> 1.7.5.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists