diff options
author | Joe Perches <joe@perches.com> | 2009-01-22 13:49:44 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-22 13:49:44 -0800 |
commit | 4fe1d58bf56f69de68868630d222322a6b45bb55 (patch) | |
tree | 59c6e3dba8d122ba26f2fb20f6068ccbe7b58db4 /net/sctp | |
parent | f019a7a594d951f085eb3878c3d825556d447efe (diff) | |
download | kernel_samsung_espresso10-4fe1d58bf56f69de68868630d222322a6b45bb55.zip kernel_samsung_espresso10-4fe1d58bf56f69de68868630d222322a6b45bb55.tar.gz kernel_samsung_espresso10-4fe1d58bf56f69de68868630d222322a6b45bb55.tar.bz2 |
sctp/ipv6.c: use ipv6_addr_copy
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/ipv6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index ceaa4aa..7862275 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -97,8 +97,7 @@ static int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev, if (addr) { addr->a.v6.sin6_family = AF_INET6; addr->a.v6.sin6_port = 0; - memcpy(&addr->a.v6.sin6_addr, &ifa->addr, - sizeof(struct in6_addr)); + ipv6_addr_copy(&addr->a.v6.sin6_addr, &ifa->addr); addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; addr->valid = 1; spin_lock_bh(&sctp_local_addr_lock); |