When clearing a fragment, it's possible that the length is zero.
Reviewed by: mckusick MFC After: 1 week
This commit is contained in:
parent
2aa2e45138
commit
5cbf47b7d1
@ -474,7 +474,7 @@ loop:
|
||||
loc = howmany(xp->i_size, fs->fs_bsize) - 1;
|
||||
if (loc < NDADDR) {
|
||||
len = fragroundup(fs, blkoff(fs, xp->i_size));
|
||||
if (len < fs->fs_bsize) {
|
||||
if (len != 0 && len < fs->fs_bsize) {
|
||||
ffs_blkfree(ump, copy_fs, vp,
|
||||
DIP(xp, i_db[loc]), len, xp->i_number);
|
||||
blkno = DIP(xp, i_db[loc]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user