Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106098788
D21953.id63091.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
D21953.id63091.diff
View Options
Index: sys/kern/subr_vmem.c
===================================================================
--- sys/kern/subr_vmem.c
+++ sys/kern/subr_vmem.c
@@ -466,6 +466,7 @@
bt_remseg(vmem_t *vm, bt_t *bt)
{
+ MPASS(bt->bt_type != BT_TYPE_CURSOR);
TAILQ_REMOVE(&vm->vm_seglist, bt, bt_seglist);
bt_free(vm, bt);
}
@@ -843,6 +844,7 @@
VMEM_LOCK(vm);
MPASS(vm->vm_nbusytag == 0);
+ TAILQ_REMOVE(&vm->vm_seglist, &vm->vm_cursor, bt_seglist);
while ((bt = TAILQ_FIRST(&vm->vm_seglist)) != NULL)
bt_remseg(vm, bt);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 9:23 AM (11 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15603292
Default Alt Text
D21953.id63091.diff (524 B)
Attached To
Mode
D21953: Don't free the cursor boundary tag during vmem_destroy().
Attached
Detach File
Event Timeline
Log In to Comment