diff options
Diffstat (limited to 'fs/udf/ialloc.c')
-rw-r--r-- | fs/udf/ialloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c index 647370d70175..598f33bdcd26 100644 --- a/fs/udf/ialloc.c +++ b/fs/udf/ialloc.c | |||
@@ -124,7 +124,12 @@ struct inode *udf_new_inode(struct inode *dir, umode_t mode, int *err) | |||
124 | iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; | 124 | iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; |
125 | inode->i_mtime = inode->i_atime = inode->i_ctime = | 125 | inode->i_mtime = inode->i_atime = inode->i_ctime = |
126 | iinfo->i_crtime = current_fs_time(inode->i_sb); | 126 | iinfo->i_crtime = current_fs_time(inode->i_sb); |
127 | insert_inode_hash(inode); | 127 | if (unlikely(insert_inode_locked(inode) < 0)) { |
128 | make_bad_inode(inode); | ||
129 | iput(inode); | ||
130 | *err = -EIO; | ||
131 | return NULL; | ||
132 | } | ||
128 | mark_inode_dirty(inode); | 133 | mark_inode_dirty(inode); |
129 | 134 | ||
130 | *err = 0; | 135 | *err = 0; |