NFSv4: Ensure that we pass the correct dentry to nfs4_intent_set_file

This patch fixes an Oops that was reported by Gabriel Barazer.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+1 -1
+1 -1
fs/nfs/nfs4proc.c
··· 1434 1434 } 1435 1435 res = d_add_unique(dentry, igrab(state->inode)); 1436 1436 if (res != NULL) 1437 - dentry = res; 1437 + path.dentry = res; 1438 1438 nfs4_intent_set_file(nd, &path, state); 1439 1439 return res; 1440 1440 }