tunneling: Don't leak dst on vlan tagging failure.
authorJesse Gross <jesse@nicira.com>
Fri, 4 Mar 2011 20:56:25 +0000 (12:56 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 4 Mar 2011 21:15:08 +0000 (13:15 -0800)
commit0cf59c05593ecb078fb3a284ea39f473e0b13364
treec2bd72211ae7dcb33726f5c09f30664c7270b9c7
parent25608d9720000ba2f4b4a881ca2a8cf519404f96
tunneling: Don't leak dst on vlan tagging failure.

When we need to send a packet through the IP stack we need to attach
a dst to the skb.  Due to some interactions with caching this doesn't
happen until late in the transmission process.  However, if we are
inserting a vlan tag and the insertion fails it is possible to leak
the dst.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c