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
28d7170f1c
commit
d5128ab2af
@ -474,7 +474,7 @@ ffs_snapshot(mp, snapfile)
|
||||
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…
Reference in New Issue
Block a user