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

Commit 57bbe3d7 authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust
Browse files

NFS check the return of nfs4_negotiate_security in nfs4_submount

parent 6edf9609
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -399,7 +399,10 @@ struct vfsmount *nfs4_submount(struct nfs_server *server, struct dentry *dentry,
		flavor = client->cl_auth->au_flavor;
	else {
		rpc_authflavor_t new = nfs4_negotiate_security(dir, name);
		if ((int)new >= 0)
		if ((int)new < 0) {
			mnt = ERR_PTR((int)new);
			goto out;
		}
		flavor = new;
	}
	mnt = nfs_do_submount(dentry, fh, fattr, flavor);