diff --git a/net/ipv4/gre_demux.c b/net/ipv4/gre_demux.c index 44bfeecac33e..9c5fac0fc0ee 100644 --- a/net/ipv4/gre_demux.c +++ b/net/ipv4/gre_demux.c @@ -60,8 +60,8 @@ EXPORT_SYMBOL_GPL(gre_del_protocol); int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, bool *csum_err, __be16 proto, int nhs) { - const struct gre_base_hdr *greh; - __be32 *options; + const struct gre_base_hdr *greh = NULL; + __be32 *options = NULL; int hdr_len; if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr))))