diff options
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index fd87e3ceb56e..249e5033c1a8 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -321,9 +321,9 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist, | |||
321 | struct inet6_ifaddr *ifp; | 321 | struct inet6_ifaddr *ifp; |
322 | struct sctp_sockaddr_entry *addr; | 322 | struct sctp_sockaddr_entry *addr; |
323 | 323 | ||
324 | read_lock(&addrconf_lock); | 324 | rcu_read_lock(); |
325 | if ((in6_dev = __in6_dev_get(dev)) == NULL) { | 325 | if ((in6_dev = __in6_dev_get(dev)) == NULL) { |
326 | read_unlock(&addrconf_lock); | 326 | rcu_read_unlock(); |
327 | return; | 327 | return; |
328 | } | 328 | } |
329 | 329 | ||
@@ -342,7 +342,7 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist, | |||
342 | } | 342 | } |
343 | 343 | ||
344 | read_unlock(&in6_dev->lock); | 344 | read_unlock(&in6_dev->lock); |
345 | read_unlock(&addrconf_lock); | 345 | rcu_read_unlock(); |
346 | } | 346 | } |
347 | 347 | ||
348 | /* Initialize a sockaddr_storage from in incoming skb. */ | 348 | /* Initialize a sockaddr_storage from in incoming skb. */ |