diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/resize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 19af346a6651..454fd21a00b4 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -837,8 +837,10 @@ static int add_new_gdb(handle_t *handle, struct inode *inode, BUFFER_TRACE(dind, "get_write_access"); err = ext4_journal_get_write_access(handle, dind); - if (unlikely(err)) + if (unlikely(err)) { ext4_std_error(sb, err); + goto errout; + } /* ext4_reserve_inode_write() gets a reference on the iloc */ err = ext4_reserve_inode_write(handle, inode, &iloc); |