diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 99a8a17e9cf1..937166c6da04 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -5549,6 +5549,7 @@ static int ext4_insert_range(struct file *file, loff_t offset, loff_t len) path = ext4_find_extent(inode, offset_lblk, NULL, 0); if (IS_ERR(path)) { up_write(&EXT4_I(inode)->i_data_sem); + ret = PTR_ERR(path); goto out_stop; }