Re: [PATCH] cxgb4: fix memory leak on txq_info

2016-11-25 Thread Colin Ian King
On 25/11/16 21:10, David Miller wrote: > From: Colin King > Date: Wed, 23 Nov 2016 11:02:44 + > >> From: Colin Ian King >> >> Currently if txq_info->uldtxq cannot be allocated then >> txq_info->txq is being kfree'd (which is redundant

Re: [PATCH] cxgb4: fix memory leak on txq_info

2016-11-25 Thread David Miller
From: Colin King Date: Wed, 23 Nov 2016 11:02:44 + > From: Colin Ian King > > 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

[PATCH] cxgb4: fix memory leak on txq_info

2016-11-23 Thread Colin King
From: Colin Ian King 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 ---