aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtsock.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 9a288d5eea64..59155aebd3b9 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -365,10 +365,9 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
365 xprt->address_strings[RPC_DISPLAY_ALL] = buf; 365 xprt->address_strings[RPC_DISPLAY_ALL] = buf;
366 366
367 buf = kzalloc(36, GFP_KERNEL); 367 buf = kzalloc(36, GFP_KERNEL);
368 if (buf) { 368 if (buf)
369 snprintf(buf, 36, NIP6_SEQFMT, 369 snprintf(buf, 36, "%#p6", &addr->sin6_addr);
370 NIP6(addr->sin6_addr)); 370
371 }
372 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf; 371 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf;
373 372
374 buf = kzalloc(8, GFP_KERNEL); 373 buf = kzalloc(8, GFP_KERNEL);