Re: [PATCH] hinic: skb_pad() frees on error

2017-08-25 Thread David Miller
From: Dan Carpenter Date: Fri, 25 Aug 2017 11:24:28 +0300 > The skb_pad() function frees the skb on error, so this code has a double > free. > > Fixes: 00e57a6d4ad3 ("net-next/hinic: Add Tx operation") > Signed-off-by: Dan Carpenter Applied, thanks.

[PATCH] hinic: skb_pad() frees on error

2017-08-25 Thread Dan Carpenter
The skb_pad() function frees the skb on error, so this code has a double free. Fixes: 00e57a6d4ad3 ("net-next/hinic: Add Tx operation") Signed-off-by: Dan Carpenter diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c b/drivers/net/ethernet/huawei/hinic/hinic_tx.c index 5bf6a32faa46..abe3e