summaryrefslogtreecommitdiffstats
path: root/fs/dlm/lowcomms.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-01-22 22:24:49 +0100
committerDavid Teigland <teigland@redhat.com>2009-01-28 19:56:02 +0100
commit44ad532b3277f0cae55bfe0625d3140cf73af450 (patch)
tree7a5e7a9082c0be3a717e95fca9b890ec82345d6d /fs/dlm/lowcomms.c
parentdlm: Change rwlock which is only used in write mode to a spinlock (diff)
downloadlinux-44ad532b3277f0cae55bfe0625d3140cf73af450.tar.xz
linux-44ad532b3277f0cae55bfe0625d3140cf73af450.zip
dlm: use ipv6_addr_copy
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r--fs/dlm/lowcomms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 103a5ebd1371..bf09262b8b01 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -53,6 +53,7 @@
#include <linux/mutex.h>
#include <linux/sctp.h>
#include <net/sctp/user.h>
+#include <net/ipv6.h>
#include "dlm_internal.h"
#include "lowcomms.h"
@@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr)
} else {
struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr;
struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr;
- memcpy(&ret6->sin6_addr, &in6->sin6_addr,
- sizeof(in6->sin6_addr));
+ ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr);
}
return 0;