[ovs-dev] [PATCH 1/2] tunneling: Fix uninitialized variable warning in check_mtu.
Jesse Gross
jesse at nicira.com
Fri Feb 4 21:35:46 UTC 2011
The MTU is only needed if we are doing PMTUD but some compilers
complain that it could be used uninitialized.
Reported-by: Justin Pettit <jpettit at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>
---
datapath/tunnel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/datapath/tunnel.c b/datapath/tunnel.c
index 6d0e7b9..7bf46e0 100644
--- a/datapath/tunnel.c
+++ b/datapath/tunnel.c
@@ -717,7 +717,7 @@ static bool check_mtu(struct sk_buff *skb,
{
bool pmtud = mutable->flags & TNL_F_PMTUD;
__be16 frag_off = 0;
- int mtu;
+ int mtu = 0;
if (pmtud) {
frag_off = htons(IP_DF);
--
1.7.1
More information about the dev
mailing list