net/mlx4_core: destroy workqueue when driver fails to register
authorWei Yang <weiyang@linux.vnet.ibm.com>
Tue, 3 Dec 2013 02:04:10 +0000 (10:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Dec 2013 16:55:44 +0000 (11:55 -0500)
commit1b85ee09aac2f32f24b8db72eb152089b92ace87
tree1dcbe330799c884429ed9fdc8e44d1d9971b4b74
parent18fc25c94eadc52a42c025125af24657a93638c0
net/mlx4_core: destroy workqueue when driver fails to register

When driver registration fails, we need to clean up the resources allocated
before. mlx4_core missed destroying the workqueue allocated.

This patch destroys the workqueue when registration fails.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c