diff options
-rw-r--r-- | fs/dlm/lowcomms.c | 4 |
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 @@ | |||
53 | #include <linux/mutex.h> | 53 | #include <linux/mutex.h> |
54 | #include <linux/sctp.h> | 54 | #include <linux/sctp.h> |
55 | #include <net/sctp/user.h> | 55 | #include <net/sctp/user.h> |
56 | #include <net/ipv6.h> | ||
56 | 57 | ||
57 | #include "dlm_internal.h" | 58 | #include "dlm_internal.h" |
58 | #include "lowcomms.h" | 59 | #include "lowcomms.h" |
@@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr) | |||
250 | } else { | 251 | } else { |
251 | struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr; | 252 | struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr; |
252 | struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr; | 253 | struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr; |
253 | memcpy(&ret6->sin6_addr, &in6->sin6_addr, | 254 | ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr); |
254 | sizeof(in6->sin6_addr)); | ||
255 | } | 255 | } |
256 | 256 | ||
257 | return 0; | 257 | return 0; |