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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347955
@ -1738,10 +1738,20 @@ vmem_check_sanity(vmem_t *vm)
|
||||
}
|
||||
}
|
||||
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) {
|
||||
if (bt == bt2) {
|
||||
continue;
|
||||
}
|
||||
if (bt2->bt_type == BT_TYPE_CURSOR) {
|
||||
continue;
|
||||
}
|
||||
if (BT_ISSPAN_P(bt) != BT_ISSPAN_P(bt2)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user