be2net: Fix skb double free in be_xmit_wrokarounds() failure path
authorVasundhara Volam <vasundhara.volam@emulex.com>
Mon, 3 Mar 2014 08:55:07 +0000 (14:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:48:11 +0000 (15:48 -0500)
commitc91289510602baf9a05b3501d97dc70efa269e01
treeca35e96ec6ad4c126085a65f517e2da2f38b44ec
parent7ad09458a5be9a0990457c1a198e702559ac25ca
be2net: Fix skb double free in be_xmit_wrokarounds() failure path

skb_padto(), skb_share_check() and __vlan_put_tag() routines free
skb when they return an error. This patch fixes be_xmit_workarounds()
to not free skb again in such cases.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c