mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
Replace an uninitialized variable with the correct element from the
superblock when doing recovery with journalled soft updates. Reported by: Chuck Silvers MFC after: 3 days Sponsored by: Netflix
This commit is contained in:
parent
c89d4b3ce1
commit
e39c92986d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353903
@ -1555,7 +1555,7 @@ ino_trunc(ino_t ino, off_t size)
|
||||
/* If we freed everything in this indirect free the indir. */
|
||||
if (lastlbn > lbn)
|
||||
continue;
|
||||
blk_free(DIP(ip, di_ib[i]), 0, frags);
|
||||
blk_free(DIP(ip, di_ib[i]), 0, fs->fs_frag);
|
||||
DIP_SET(ip, di_ib[i], 0);
|
||||
}
|
||||
ino_dirty(ino);
|
||||
|
Loading…
Reference in New Issue
Block a user