cxgb4: remove workqueue when driver registration fails
authorWei Yang <weiyang@linux.vnet.ibm.com>
Sun, 15 Sep 2013 13:53:00 +0000 (21:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2013 02:28:58 +0000 (22:28 -0400)
commit73a695f8572e4c46a2aecdbb63f26f36a43e6873
tree1a71cbd119674a5c561fb37879df4debadd26079
parentd6d6d1bc44362112e10a48d434e5b3c716152003
cxgb4: remove workqueue when driver registration fails

When driver registration fails, we need to clean up the resources allocated
before. cxgb4 missed to destroy the workqueue allocated at the very beginning.

This patch destroies 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/chelsio/cxgb4/cxgb4_main.c