]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix possible use of uninitialized in vxlan_igmp_{join, leave}
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 20 Mar 2015 13:26:21 +0000 (10:26 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 17:31:24 +0000 (13:31 -0400)
commite1d8d533ee3198f8f20b44f75dc2cd89c90589fc
treec9949bfad84037991bb365466a2782802aa9abb6
parent66ad3d03aa8532e63f8ac319263f2c69458d488a
vxlan: fix possible use of uninitialized in vxlan_igmp_{join, leave}

Test robot noticed that we check the return of vxlan_igmp_join and leave
but inside them there was a path that it could be used initialized.

It's not really possible because those if() inside these igmp functions
would always match as we can't have sockets of other type in there, but
this way we keep the compiler happy.

Fixes: 9538361f2727 ("vxlan: Move socket initialization to within rtnl scope")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c