cxgb4: Fix error handling in alloc_uld_rxqs().
authorGanesh Goudar <ganeshgr@chelsio.com>
Wed, 26 Oct 2016 07:56:38 +0000 (13:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 18:56:26 +0000 (14:56 -0400)
commit166e6045cacccb3046883a1a4c977f173fec5ccd
treef3d1c6165eaad0a4da113d684b27b493399ad2b1
parenta4256bc9ec36159e84d710c7c44aaa244a6380a8
cxgb4: Fix error handling in alloc_uld_rxqs().

Fix to release resources properly in error handling path of
alloc_uld_rxqs(), This patch also removes unwanted arguments
and avoids calling the same function twice.

Fixes: 94cdb8bb993a (cxgb4: Add support for dynamic allocation
       of resources for ULD
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c