[IPV6]: Fix tunnel list locking in sit.c
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1559, 2005/01/13 21:12:55-08:00, [email protected] [IPV6]: Fix tunnel list locking in sit.c Signed-off-by: Hideaki YOSHIFUJI <[email protected]> Signed-off-by: David S. Miller <[email protected]> sit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/net/ipv6/sit.c b/net/ipv6/sit.c --- a/net/ipv6/sit.c 2005-01-15 07:06:32 -08:00 +++ b/net/ipv6/sit.c 2005-01-15 07:06:32 -08:00 @@ -139,10 +139,10 @@ { struct ip_tunnel **tp = ipip6_bucket(t); - write_lock_bh(&ipip6_lock); t->next = *tp; - write_unlock_bh(&ipip6_lock); + write_lock_bh(&ipip6_lock); *tp = t; + write_unlock_bh(&ipip6_lock); } struct ip_tunnel * ipip6_tunnel_locate(struct ip_tunnel_parm *parms, int create)