]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix vport_send double free
authorPravin B Shelar <pshelar@nicira.com>
Wed, 24 Dec 2014 00:20:32 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 04:57:31 +0000 (23:57 -0500)
commit968c239a9a7d755f2b096fdb58193d206a3977a3
tree2fc6e7b30a84898baeb28fd3ec783e292541335c
parent27bc83062af8d037b391b8026fd45b7b3a414910
openvswitch: Fix vport_send double free

Today vport-send has complex error handling because it involves
freeing skb and updating stats depending on return value from
vport send implementation.
This can be simplified by delegating responsibility of freeing
skb to the vport implementation for all cases. So that
vport-send needs just update stats.

Fixes: 098bc5bdb6 ("openvswitch: Unify vport error stats
handling")
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/geneve.c
net/openvswitch/vport-geneve.c
net/openvswitch/vport-gre.c
net/openvswitch/vport-vxlan.c
net/openvswitch/vport.c