ktr: copy content from the early static buffer if KTR_ENTRIES !=

KTR_BOOT_ENTRIES

Reported by:	glebius, jhb
Pointyhat to:	avg
MFC after:	14 days
X-MFC with:	r246282
This commit is contained in:
Andriy Gapon 2013-02-04 21:50:55 +00:00
parent 399fe4799b
commit f85ed12497
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246330

View File

@ -213,6 +213,7 @@ ktr_entries_initializer(void *dummy __unused)
ktr_mask = 0;
ktr_buf = malloc(sizeof(*ktr_buf) * KTR_ENTRIES, M_KTR,
M_WAITOK | M_ZERO);
memcpy(ktr_buf, ktr_buf_init, sizeof(ktr_buf_init));
ktr_entries = KTR_ENTRIES;
ktr_mask = mask;
}