cxgb4: fix memory leak on txq_info
authorColin Ian King <colin.king@canonical.com>
Wed, 23 Nov 2016 11:02:44 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Nov 2016 21:09:50 +0000 (16:09 -0500)
commit619228d86b0e32e00758dcf07ca5d06903d9a9d7
tree92053a012587b528e567a43c2e665ca0672a827c
parent436accebb53021ef7c63535f60bda410aa87c136
cxgb4: fix memory leak on txq_info

Currently if txq_info->uldtxq cannot be allocated then
txq_info->txq is being kfree'd (which is redundant because it
is NULL) instead of txq_info. Fix this by instead kfree'ing
txq_info.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c