1
0
Fork 0

GFS2: Fix typo in gfs2_create_inode()

PTR_RET should be PTR_ERR

Reported-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
hifive-unleashed-5.1
Steven Whitehouse 2013-07-17 08:11:32 +01:00
parent 47188d39b5
commit 2523d47a79
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
}
gfs2_glock_dq_uninit(ghs);
if (IS_ERR(d))
return PTR_RET(d);
return PTR_ERR(d);
return error;
} else if (error != -ENOENT) {
goto fail_gunlock;