aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r--net/sunrpc/svcauth_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index ce136323da8b..fe258fc37f50 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -134,7 +134,7 @@ static void ip_map_init(struct cache_head *cnew, struct cache_head *citem)
134 struct ip_map *item = container_of(citem, struct ip_map, h); 134 struct ip_map *item = container_of(citem, struct ip_map, h);
135 135
136 strcpy(new->m_class, item->m_class); 136 strcpy(new->m_class, item->m_class);
137 ipv6_addr_copy(&new->m_addr, &item->m_addr); 137 new->m_addr = item->m_addr;
138} 138}
139static void update(struct cache_head *cnew, struct cache_head *citem) 139static void update(struct cache_head *cnew, struct cache_head *citem)
140{ 140{
@@ -274,7 +274,7 @@ static int ip_map_show(struct seq_file *m,
274 } 274 }
275 im = container_of(h, struct ip_map, h); 275 im = container_of(h, struct ip_map, h);
276 /* class addr domain */ 276 /* class addr domain */
277 ipv6_addr_copy(&addr, &im->m_addr); 277 addr = im->m_addr;
278 278
279 if (test_bit(CACHE_VALID, &h->flags) && 279 if (test_bit(CACHE_VALID, &h->flags) &&
280 !test_bit(CACHE_NEGATIVE, &h->flags)) 280 !test_bit(CACHE_NEGATIVE, &h->flags))
@@ -297,7 +297,7 @@ static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class,
297 struct cache_head *ch; 297 struct cache_head *ch;
298 298
299 strcpy(ip.m_class, class); 299 strcpy(ip.m_class, class);
300 ipv6_addr_copy(&ip.m_addr, addr); 300 ip.m_addr = *addr;
301 ch = sunrpc_cache_lookup(cd, &ip.h, 301 ch = sunrpc_cache_lookup(cd, &ip.h,
302 hash_str(class, IP_HASHBITS) ^ 302 hash_str(class, IP_HASHBITS) ^
303 hash_ip6(*addr)); 303 hash_ip6(*addr));