diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-02-18 15:20:25 +0000 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2016-02-18 15:20:25 +0000 |
| commit | ab4ac2567203f642959e0ff8a88425254d121a52 (patch) | |
| tree | e1defcd17f95e9feb2cd15fbde24912f3584adc9 /src | |
| parent | 6c6fb14455806704ea7814a31747ec551cb39928 (diff) | |
Fix assertion fault when disk space is full.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ext4_fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext4_fs.c b/src/ext4_fs.c index 7707341..db3a2ca 100644 --- a/src/ext4_fs.c +++ b/src/ext4_fs.c @@ -1630,6 +1630,8 @@ int ext4_fs_append_inode_dblk(struct ext4_inode_ref *inode_ref, rc = ext4_extent_get_blocks(inode_ref, *iblock, 1, ¤t_fsblk, true, NULL); + if (rc != EOK) + return rc; *fblock = current_fsblk; ext4_assert(*fblock); |
