mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
plip: avoid rcu debug splat
commitbc3c8fe3c7
upstream. WARNING: suspicious RCU usage 5.2.0-rc2-00605-g2638eb8b50cfc #1 Not tainted drivers/net/plip/plip.c:1110 suspicious rcu_dereference_check() usage! plip_open is called with RTNL held, switch to the correct helper. Fixes:2638eb8b50
("net: ipv4: provide __rcu annotation for ifa_list") Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Florian Westphal <fw@strlen.de> Link: https://lore.kernel.org/r/20220807115304.13257-1-fw@strlen.de Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4fca34d80c
commit
3e47f2c8da
1 changed files with 1 additions and 1 deletions
|
@ -1107,7 +1107,7 @@ plip_open(struct net_device *dev)
|
|||
/* Any address will do - we take the first. We already
|
||||
have the first two bytes filled with 0xfc, from
|
||||
plip_init_dev(). */
|
||||
const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list);
|
||||
const struct in_ifaddr *ifa = rtnl_dereference(in_dev->ifa_list);
|
||||
if (ifa != NULL) {
|
||||
memcpy(dev->dev_addr+2, &ifa->ifa_local, 4);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue