diff --git a/[refs] b/[refs] index d5d314c9bcb9..6af1cf3c840b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fa38e92cb34e27e60d0faf1035934eb9b44aa1d4 +refs/heads/master: 87cfa004321c62aec681713ea48e0b846336d9f4 diff --git a/trunk/fs/ocfs2/namei.c b/trunk/fs/ocfs2/namei.c index 485a6aa0ad39..f594f300d4cd 100644 --- a/trunk/fs/ocfs2/namei.c +++ b/trunk/fs/ocfs2/namei.c @@ -378,8 +378,8 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, } inode = new_inode(dir->i_sb); - if (IS_ERR(inode)) { - status = PTR_ERR(inode); + if (!inode) { + status = -ENOMEM; mlog(ML_ERROR, "new_inode failed!\n"); goto leave; }