re: openvswitch: Fix egress tunnel info.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Pravin B Shelar,

This is a semi-automatic email about new static checker warnings.

The patch fc4099f17240: "openvswitch: Fix egress tunnel info." from 
Oct 22, 2015, leads to the following Smatch complaint:

include/net/dst_metadata.h:69 tun_dst_unclone()
	 warn: variable dereferenced before check 'md_dst' (see line 66)

include/net/dst_metadata.h
    65		struct metadata_dst *md_dst = skb_metadata_dst(skb);
    66		int md_size = md_dst->u.tun_info.options_len;
                              ^^^^^^^^
New dereference.

    67		struct metadata_dst *new_md;
    68	
    69		if (!md_dst)
                    ^^^^^^^
New NULL check.

    70			return ERR_PTR(-EINVAL);
    71	

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux