summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/fault_inject.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-12-07 16:17:28 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-12-10 18:24:21 -0500
commit0a5c33e23c4d781ecc815002c54f1f91012c703d (patch)
treecbc351dba8ab9d85fb53f76b83874861bc32a31e /fs/nfsd/fault_inject.c
parent88c47666171989ed4c5b1a5687df09511e8c5e35 (diff)
downloadtalos-obmc-linux-0a5c33e23c4d781ecc815002c54f1f91012c703d.tar.gz
talos-obmc-linux-0a5c33e23c4d781ecc815002c54f1f91012c703d.zip
NFSD: Pass correct buffer size to rpc_ntop
I honestly have no idea where I got 129 from, but it's a much bigger value than the actual buffer size (INET6_ADDRSTRLEN). Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/fault_inject.c')
-rw-r--r--fs/nfsd/fault_inject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
index 96ffdf55dcec..7a7b079fbdb1 100644
--- a/fs/nfsd/fault_inject.c
+++ b/fs/nfsd/fault_inject.c
@@ -79,7 +79,7 @@ static void nfsd_inject_set_client(struct nfsd_fault_inject_op *op,
clp = nfsd_find_client(addr, addr_size);
if (clp) {
count = op->forget(clp, 0);
- rpc_ntop((struct sockaddr *)&clp->cl_addr, buf, 129);
+ rpc_ntop((struct sockaddr *)&clp->cl_addr, buf, sizeof(buf));
printk(KERN_INFO "NFSD [%s]: Client %s had %llu state object(s)\n", op->file, buf, count);
}
nfs4_unlock_state();
OpenPOWER on IntegriCloud