Commit:     afd0942d98f74296b74993739e41d2ca7cb9fd5a
Parent:     aa0481e58a9a97a97035725a712920b5fe32f348
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 20 13:07:26 2007 -0500
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 08:54:46 2007 +0100

    [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: Steve French <[EMAIL PROTECTED]>
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
 fs/gfs2/ops_inode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index 911c115..5b8b994 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -69,7 +69,7 @@ static int gfs2_create(struct inode *dir, struct dentry 
                } else if (PTR_ERR(inode) != -EEXIST ||
-                          (nd-> & O_EXCL)) {
+                          (nd && (nd-> & O_EXCL))) {
                        return PTR_ERR(inode);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to