HardenedBSD/sys/ufs/ffs
Poul-Henning Kamp 3758b280f2 We got a couple of "map mismatch" panics from the following
code.  According to the crash dump, bpref is set to 445
and cgp->cg_nclusterblks is 444.  Hence in the for loop,
the test fails immediately but the following failure check
(got == cgp->cg_nclusterblks) doesn't trigger because got >
cgp->cg_nclusterblks.  This wreaks havoc in the code after that.

Fix: Move one source bit to the left  :-)

Noticed by:	Mike Hibler <mike@fast.cs.utah.edu>
Submitted by:	Kirk McKusick <mckusick@McKusick.COM>
1997-08-04 07:30:43 +00:00
..
ffs_alloc.c We got a couple of "map mismatch" panics from the following 1997-08-04 07:30:43 +00:00
ffs_balloc.c Removed unused #includes. 1997-08-02 14:33:27 +00:00
ffs_extern.h
ffs_inode.c Fixed some invalid (non-atomic) accesses to `time', mostly ones of the 1997-03-22 06:53:45 +00:00
ffs_subr.c Update a number of panic messages to reflect the actual name 1997-03-09 06:00:44 +00:00
ffs_tables.c
ffs_vfsops.c Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
ffs_vnops.c Fixed some invalid (non-atomic) accesses to `time', mostly ones of the 1997-03-22 06:53:45 +00:00
fs.h Fixed corrupted newline and corrupted tab in previous commit. 1997-03-24 03:19:37 +00:00