diff options
author | mckusick <mckusick@FreeBSD.org> | 2013-02-03 17:16:32 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2013-02-03 17:16:32 +0000 |
commit | 1858329b43a5e7ea4bd21fc00d9a153c6878f21f (patch) | |
tree | bb4b13cc083564b15f377af4a98da39c1467af45 /secure | |
parent | 6fa139d56eac8251b9a64c249c8e6fc8131f405c (diff) | |
download | FreeBSD-src-1858329b43a5e7ea4bd21fc00d9a153c6878f21f.zip FreeBSD-src-1858329b43a5e7ea4bd21fc00d9a153c6878f21f.tar.gz |
For UFS2 i_blocks is unsigned. The current "sanity" check that it
has gone below zero after the blocks in its inode are freed is a
no-op which the compiler fails to warn about because of the use of
the DIP macro. Change the sanity check to compare the number of
blocks being freed against the value i_blocks. If the number of
blocks being freed exceeds i_blocks, just set i_blocks to zero.
Reported by: Pedro Giffuni (pfg@)
MFC after: 2 weeks
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions