ibmveth: Fix leak when recycling skb and hypervisor returns error
authorAnton Blanchard <anton@samba.org>
Thu, 25 Aug 2011 00:56:15 +0000 (17:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Aug 2011 00:56:15 +0000 (17:56 -0700)
commitc6f59d13e24187ff95427a9f4a5a7e14fb8faf5a
tree1319f7708560d509b2b91c05a64d093fa3794301
parent20e6074eb8e096b3a595c093d1cb222f378cd671
ibmveth: Fix leak when recycling skb and hypervisor returns error

If h_add_logical_lan_buffer returns an error we need to free
the skb.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: stable <stable@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c