summaryrefslogtreecommitdiff
path: root/sys/dev/vmware
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2014-06-19 05:10:03 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2014-06-19 05:10:03 +0000
commit5098dbb20dbfc16bfccd007a0e13a1a50624ea07 (patch)
treeca512f49eda2f9a0f52c699f3eebab74d8846876 /sys/dev/vmware
parenteff808e10a4079cac0e46c8b0565561a2d23a6f7 (diff)
Notes
Diffstat (limited to 'sys/dev/vmware')
-rw-r--r--sys/dev/vmware/vmxnet3/if_vmx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index ae8f82ed5640..fd2dd519bd84 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -2607,10 +2607,12 @@ vmxnet3_txq_offload_ctx(struct vmxnet3_txqueue *txq, struct mbuf *m,
struct ether_vlan_header *evh;
int offset;
#if defined(INET)
- struct ip *ip, iphdr;
+ struct ip *ip = NULL;
+ struct ip iphdr;
#endif
#if defined(INET6)
- struct ip6_hdr *ip6, ip6hdr;
+ struct ip6_hdr *ip6 = NULL;
+ struct ip6_hdr ip6hdr;
#endif
evh = mtod(m, struct ether_vlan_header *);