lkml.org 
[lkml]   [2021]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[kbuild] Re: [PATCH] net: Allow any address multicast join for IP sockets
Hi Callum,

url: https://github.com/0day-ci/linux/commits/Callum-Sinclair/net-Allow-any-address-multicast-join-for-IP-sockets/20210706-091734
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 79160a603bdb51916226caf4a6616cc4e1c58a58
compiler: m68k-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> net/ipv4/igmp.c:1432:9: warning: Uninitialized variable: im [uninitvar]
return im;
^

vim +1432 net/ipv4/igmp.c

b05967ad8bde7d Callum Sinclair 2021-07-06 1416 static struct ip_mc_list *ip_mc_hash_lookup(struct ip_mc_list __rcu **mc_hash,
b05967ad8bde7d Callum Sinclair 2021-07-06 1417 __be32 mc_addr)
b05967ad8bde7d Callum Sinclair 2021-07-06 1418 {
b05967ad8bde7d Callum Sinclair 2021-07-06 1419 struct ip_mc_list *im;
b05967ad8bde7d Callum Sinclair 2021-07-06 1420 u32 hash;
b05967ad8bde7d Callum Sinclair 2021-07-06 1421
b05967ad8bde7d Callum Sinclair 2021-07-06 1422 if (mc_hash) {
b05967ad8bde7d Callum Sinclair 2021-07-06 1423 hash = hash_32((__force u32)mc_addr, MC_HASH_SZ_LOG);
b05967ad8bde7d Callum Sinclair 2021-07-06 1424 for (im = rcu_dereference(mc_hash[hash]);
b05967ad8bde7d Callum Sinclair 2021-07-06 1425 im != NULL;
b05967ad8bde7d Callum Sinclair 2021-07-06 1426 im = rcu_dereference(im->next_hash)) {
b05967ad8bde7d Callum Sinclair 2021-07-06 1427 if (im->multiaddr == mc_addr)
b05967ad8bde7d Callum Sinclair 2021-07-06 1428 break;
b05967ad8bde7d Callum Sinclair 2021-07-06 1429 }
b05967ad8bde7d Callum Sinclair 2021-07-06 1430 }

"im" not intialized on else path.

b05967ad8bde7d Callum Sinclair 2021-07-06 1431
b05967ad8bde7d Callum Sinclair 2021-07-06 @1432 return im;
b05967ad8bde7d Callum Sinclair 2021-07-06 1433 }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

\
 
 \ /
  Last update: 2021-07-07 09:27    [W:0.077 / U:24.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site