]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/nfs/dir.c
NFSv4: Ensure asynchronous open() calls always pin the mountpoint
[mirror_ubuntu-hirsute-kernel.git] / fs / nfs / dir.c
index c27258b5d3e16a55f16f85981e92a22854de3583..4948ec1dd9bd0f321851e9ec8515ec6d961b1d1d 100644 (file)
@@ -1244,7 +1244,7 @@ static int nfs_create(struct inode *dir, struct dentry *dentry, int mode,
        attr.ia_mode = mode;
        attr.ia_valid = ATTR_MODE;
 
-       if (nd && (nd->flags & LOOKUP_CREATE))
+       if ((nd->flags & LOOKUP_CREATE) != 0)
                open_flags = nd->intent.open.flags;
 
        lock_kernel();