From: Djalal Harouni Date: Tue, 18 Jun 2013 16:58:12 +0000 (+0100) Subject: NFSv4: SETCLIENTID add the format string for the NETID X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe2d5395c417c2364936002b87901b02a18787b1;p=linux-beck.git NFSv4: SETCLIENTID add the format string for the NETID Make sure that NFSv4 SETCLIENTID does not parse the NETID as a format string. Signed-off-by: Djalal Harouni Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 65467abbd5a6..83e0e1de7ecf 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -4369,7 +4369,7 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, /* cb_client4 */ rcu_read_lock(); setclientid.sc_netid_len = scnprintf(setclientid.sc_netid, - sizeof(setclientid.sc_netid), + sizeof(setclientid.sc_netid), "%s", rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_NETID)); rcu_read_unlock();