mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
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 <tixxdz@opendz.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
c45ffdd269
commit
fe2d5395c4
@ -4369,7 +4369,7 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program,
|
|||||||
/* cb_client4 */
|
/* cb_client4 */
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
setclientid.sc_netid_len = scnprintf(setclientid.sc_netid,
|
setclientid.sc_netid_len = scnprintf(setclientid.sc_netid,
|
||||||
sizeof(setclientid.sc_netid),
|
sizeof(setclientid.sc_netid), "%s",
|
||||||
rpc_peeraddr2str(clp->cl_rpcclient,
|
rpc_peeraddr2str(clp->cl_rpcclient,
|
||||||
RPC_DISPLAY_NETID));
|
RPC_DISPLAY_NETID));
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user