hinic: skb_pad() frees on error
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Aug 2017 08:24:28 +0000 (11:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 00:13:04 +0000 (17:13 -0700)
commit7d8697afae5c61a9495fff54a1c5d053dea4505f
treee91086000e13794f78f8aa263642a070d77e6a06
parentcf4828d1666beaef513ce3c8f9e4fe4af1ff4e87
hinic: skb_pad() frees on error

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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_tx.c