lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20131203013634.GA7485@weiyang.vnet.ibm.com>
Date:	Tue, 3 Dec 2013 09:36:34 +0800
From:	Wei Yang <weiyang@...ux.vnet.ibm.com>
To:	Or Gerlitz <or.gerlitz@...il.com>
Cc:	Wei Yang <weiyang@...ux.vnet.ibm.com>,
	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 02, 2013 at 10:11:52PM +0200, Or Gerlitz wrote:
>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/

Ah, sorry for my poor English, will send another one.

>
>>
>> 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

-- 
Richard Yang
Help you, Help me

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ