Commit 5f23eff3 authored by Benny Halevy's avatar Benny Halevy Committed by Trond Myklebust

NFS: fix unsigned comparison in nfs4_create_sec_client

fs/nfs/nfs4namespace.c: In function ‘nfs4_create_sec_client’:
fs/nfs/nfs4namespace.c:171:2: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]

Introduced by commit 72de53ec
"NFS: Do secinfo as part of lookup"
Signed-off-by: default avatarBenny Halevy <bhalevy@tonian.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent bda14606
...@@ -168,7 +168,7 @@ struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *clnt, struct inode *ino ...@@ -168,7 +168,7 @@ struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *clnt, struct inode *ino
rpc_authflavor_t flavor; rpc_authflavor_t flavor;
flavor = nfs4_negotiate_security(inode, name); flavor = nfs4_negotiate_security(inode, name);
if (flavor < 0) if ((int)flavor < 0)
return ERR_PTR(flavor); return ERR_PTR(flavor);
clone = rpc_clone_client(clnt); clone = rpc_clone_client(clnt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment