Update the DIAGNOSTIC-only vmem_check_sanity() after r347949.
Cursor tags are special and shouldn't be subject to the existing checks. Reported by: kib, David Wolfskill MFC with: r347949
This commit is contained in:
parent
19a9d4fa28
commit
fd0be988cb
@ -1738,10 +1738,20 @@ vmem_check_sanity(vmem_t *vm)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
TAILQ_FOREACH(bt, &vm->vm_seglist, bt_seglist) {
|
TAILQ_FOREACH(bt, &vm->vm_seglist, bt_seglist) {
|
||||||
|
if (bt->bt_type == BT_TYPE_CURSOR) {
|
||||||
|
if (bt->bt_start != 0 || bt->bt_size != 0) {
|
||||||
|
printf("corrupted cursor\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
TAILQ_FOREACH(bt2, &vm->vm_seglist, bt_seglist) {
|
TAILQ_FOREACH(bt2, &vm->vm_seglist, bt_seglist) {
|
||||||
if (bt == bt2) {
|
if (bt == bt2) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (bt2->bt_type == BT_TYPE_CURSOR) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (BT_ISSPAN_P(bt) != BT_ISSPAN_P(bt2)) {
|
if (BT_ISSPAN_P(bt) != BT_ISSPAN_P(bt2)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user