]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/dlm-use-ipv6_addr_copy.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / dlm-use-ipv6_addr_copy.patch
CommitLineData
2cb7cef9
BS
1From: Joe Perches <joe@perches.com>
2commit 44ad532b3277f0cae55bfe0625d3140cf73af450
3Author: Joe Perches <joe@perches.com>
4Date: Thu Jan 22 13:24:49 2009 -0800
5Subject: dlm: use ipv6_addr_copy
6
7Signed-off-by: Joe Perches <joe@perches.com>
8Signed-off-by: David Teigland <teigland@redhat.com>
9Signed-off-by: Coly Li <coly.li@suse.de>
10
11diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
12index 103a5eb..bf09262 100644
13--- a/fs/dlm/lowcomms.c
14+++ b/fs/dlm/lowcomms.c
15@@ -53,6 +53,7 @@
16 #include <linux/mutex.h>
17 #include <linux/sctp.h>
18 #include <net/sctp/user.h>
19+#include <net/ipv6.h>
20
21 #include "dlm_internal.h"
22 #include "lowcomms.h"
23@@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr)
24 } else {
25 struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr;
26 struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr;
27- memcpy(&ret6->sin6_addr, &in6->sin6_addr,
28- sizeof(in6->sin6_addr));
29+ ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr);
30 }
31
32 return 0;