SUNRPC: parametrize rpc_pton() by network context
Parametrize rpc_pton() by network context and thus force it's callers to pass in network context instead of using hard-coded "init_net". Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
8b147f7473
commit
90100b1766
@@ -223,7 +223,7 @@ static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size)
|
||||
if (qword_get(&buf, fo_path, size) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (rpc_pton(fo_path, size, sap, salen) == 0)
|
||||
if (rpc_pton(&init_net, fo_path, size, sap, salen) == 0)
|
||||
return -EINVAL;
|
||||
|
||||
return nlmsvc_unlock_all_by_ip(sap);
|
||||
|
Reference in New Issue
Block a user