fm10k: fix memory leak
authorstephen hemminger <shemming@brocade.com>
Tue, 17 Nov 2015 22:24:27 +0000 (14:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Nov 2015 19:58:03 +0000 (14:58 -0500)
commit6f97532ef05e49f1998a09f8359b83d00a7b3229
tree2e579cee5721956c5f5fad269477e826376a932d
parent945fae44d316a572916f673b2a58cd2d5389e7b6
fm10k: fix memory leak

This was detected by Coverity.
The function skb_cow_head leaves skb alone on failure, so caller needs
to free.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c