diff options
-rw-r--r-- | fs/gfs2/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index e321333f0b4c..2405695febe9 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -674,6 +674,10 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, | |||
674 | goto fail_gunlock; | 674 | goto fail_gunlock; |
675 | 675 | ||
676 | inode = new_inode(sdp->sd_vfs); | 676 | inode = new_inode(sdp->sd_vfs); |
677 | if (!inode) { | ||
678 | gfs2_glock_dq_uninit(ghs); | ||
679 | return -ENOMEM; | ||
680 | } | ||
677 | ip = GFS2_I(inode); | 681 | ip = GFS2_I(inode); |
678 | error = gfs2_rs_alloc(ip); | 682 | error = gfs2_rs_alloc(ip); |
679 | if (error) | 683 | if (error) |