]> 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)
commit85ecbc9e39ec52108b652561e4db61fbb79d0c9f
tree2fc6e7b30a84898baeb28fd3ec783e292541335c
parent10ae56506fc268f43f7ce0b964ad74b80a709084
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: f5ee0a241a ("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