Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe2d5395 authored by Djalal Harouni's avatar Djalal Harouni Committed by Trond Myklebust
Browse files

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: default avatarDjalal Harouni <tixxdz@opendz.org>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent c45ffdd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();