Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107139098
D47708.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
953 B
Referenced Files
None
Subscribers
None
D47708.diff
View Options
diff --git a/sys/kern/kern_dump.c b/sys/kern/kern_dump.c
--- a/sys/kern/kern_dump.c
+++ b/sys/kern/kern_dump.c
@@ -465,7 +465,6 @@
struct minidumpstate state;
struct msgbuf mb_copy;
char *msg_ptr;
- size_t sz;
int error;
if (livedump) {
@@ -510,9 +509,10 @@
msgbuf_duplicate(msgbufp, &mb_copy, msg_ptr);
state.msgbufp = &mb_copy;
- sz = BITSET_SIZE(vm_page_dump_pages);
- state.dump_bitset = malloc(sz, M_TEMP, M_WAITOK);
- BIT_COPY_STORE_REL(sz, vm_page_dump, state.dump_bitset);
+ state.dump_bitset = BITSET_ALLOC(vm_page_dump_pages, M_TEMP,
+ M_WAITOK);
+ BIT_COPY_STORE_REL(vm_page_dump_pages, vm_page_dump,
+ state.dump_bitset);
} else {
KASSERT(dumping, ("minidump invoked outside of doadump()"));
@@ -524,7 +524,7 @@
error = cpu_minidumpsys(di, &state);
if (livedump) {
free(msg_ptr, M_TEMP);
- free(state.dump_bitset, M_TEMP);
+ BITSET_FREE(state.dump_bitset, M_TEMP);
}
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 5:40 PM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14816606
Default Alt Text
D47708.diff (953 B)
Attached To
Mode
D47708: kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump
Attached
Detach File
Event Timeline
Log In to Comment