projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hsr: fix a race condition in node list insertion and deletion
[platform/kernel/linux-starfive.git]
/
net
/
hsr
/
hsr_main.c
diff --git
a/net/hsr/hsr_main.c
b/net/hsr/hsr_main.c
index
ea23eb7
..
d2ee712
100644
(file)
--- a/
net/hsr/hsr_main.c
+++ b/
net/hsr/hsr_main.c
@@
-67,7
+67,7
@@
static int hsr_netdev_notify(struct notifier_block *nb, unsigned long event,
/* Make sure we recognize frames from ourselves in hsr_rcv() */
port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B);
- res = hsr_create_self_node(
&hsr->self_node_db
,
+ res = hsr_create_self_node(
hsr
,
master->dev->dev_addr,
port ?
port->dev->dev_addr :