Commit afd0942d authored by Steve French's avatar Steve French Committed by Steven Whitehouse

[GFS2] GFS2 not checking pointer on create when running under nfsd

When looking at an unrelated problem, I noticed that nfsd does not
set nameidata pointer on create (ie nd is NULL).  This should
cause an oops in some cases in which when NFSd is mounted over GFS2.
Signed-off-by: default avatarSteve French <>
Signed-off-by: default avatarSteven Whitehouse <>
parent aa0481e5
......@@ -69,7 +69,7 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
} else if (PTR_ERR(inode) != -EEXIST ||
(nd-> & O_EXCL)) {
(nd && (nd-> & O_EXCL))) {
return PTR_ERR(inode);
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