diff options
| -rw-r--r-- | net/ipv4/tunnel4.c | 2 | ||||
| -rw-r--r-- | net/ipv6/tunnel6.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tunnel4.c b/net/ipv4/tunnel4.c index df59d16337f2..9a17bd2a0a37 100644 --- a/net/ipv4/tunnel4.c +++ b/net/ipv4/tunnel4.c | |||
| @@ -39,7 +39,7 @@ int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) | |||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | handler->next = *pprev; | 41 | handler->next = *pprev; |
| 42 | *pprev = handler; | 42 | rcu_assign_pointer(*pprev, handler); |
| 43 | 43 | ||
| 44 | ret = 0; | 44 | ret = 0; |
| 45 | 45 | ||
diff --git a/net/ipv6/tunnel6.c b/net/ipv6/tunnel6.c index 3177fe0459e0..d9864725d0c6 100644 --- a/net/ipv6/tunnel6.c +++ b/net/ipv6/tunnel6.c | |||
| @@ -51,7 +51,7 @@ int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) | |||
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | handler->next = *pprev; | 53 | handler->next = *pprev; |
| 54 | *pprev = handler; | 54 | rcu_assign_pointer(*pprev, handler); |
| 55 | 55 | ||
| 56 | ret = 0; | 56 | ret = 0; |
| 57 | 57 | ||
