diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 87525523446d..c8a959c09f1e 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -1033,13 +1033,11 @@ struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name, | |||
1033 | 1033 | ||
1034 | if (bh) | 1034 | if (bh) |
1035 | brelse(bh); | 1035 | brelse(bh); |
1036 | if (!inode) | ||
1037 | return ERR_PTR(-ENOMEM); | ||
1038 | return inode; | 1036 | return inode; |
1039 | 1037 | ||
1040 | fail_gunlock2: | 1038 | fail_gunlock2: |
1041 | gfs2_glock_dq_uninit(ghs + 1); | 1039 | gfs2_glock_dq_uninit(ghs + 1); |
1042 | if (inode) | 1040 | if (inode && !IS_ERR(inode)) |
1043 | iput(inode); | 1041 | iput(inode); |
1044 | fail_gunlock: | 1042 | fail_gunlock: |
1045 | gfs2_glock_dq(ghs); | 1043 | gfs2_glock_dq(ghs); |