Commit 2523d47a authored by Steven Whitehouse's avatar Steven Whitehouse

GFS2: Fix typo in gfs2_create_inode()

PTR_RET should be PTR_ERR
Reported-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 47188d39
...@@ -594,7 +594,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, ...@@ -594,7 +594,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
} }
gfs2_glock_dq_uninit(ghs); gfs2_glock_dq_uninit(ghs);
if (IS_ERR(d)) if (IS_ERR(d))
return PTR_RET(d); return PTR_ERR(d);
return error; return error;
} else if (error != -ENOENT) { } else if (error != -ENOENT) {
goto fail_gunlock; goto fail_gunlock;
......
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