summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-08-04 07:30:43 +0000
committerphk <phk@FreeBSD.org>1997-08-04 07:30:43 +0000
commitb3f221cd7a3fd66ee5b374ab332ecdaee4604b5f (patch)
treefd308303922ccc9ea685511a552c6dface15b04b /sys/kern/kern_lock.c
parentba2544a6f0b91693130f57914790cc17ca424abf (diff)
downloadFreeBSD-src-b3f221cd7a3fd66ee5b374ab332ecdaee4604b5f.zip
FreeBSD-src-b3f221cd7a3fd66ee5b374ab332ecdaee4604b5f.tar.gz
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>
Diffstat (limited to 'sys/kern/kern_lock.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud