1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix wrong kassert msg in uma.

PR:		199172
Submitted by:	luke.tw gmail com
MFC after:	1 week
This commit is contained in:
Dmitry Chagin 2015-04-05 18:25:23 +00:00
parent 120e0283fc
commit 1d2c0c460c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281113

View File

@ -3060,7 +3060,7 @@ uma_zone_set_fini(uma_zone_t zone, uma_fini fini)
uma_keg_t keg;
keg = zone_first_keg(zone);
KASSERT(keg != NULL, ("uma_zone_set_init: Invalid zone type"));
KASSERT(keg != NULL, ("uma_zone_set_fini: Invalid zone type"));
KEG_LOCK(keg);
KASSERT(keg->uk_pages == 0,
("uma_zone_set_fini on non-empty keg"));
@ -3100,7 +3100,7 @@ uma_zone_set_freef(uma_zone_t zone, uma_free freef)
uma_keg_t keg;
keg = zone_first_keg(zone);
KASSERT(keg != NULL, ("uma_zone_set_init: Invalid zone type"));
KASSERT(keg != NULL, ("uma_zone_set_freef: Invalid zone type"));
KEG_LOCK(keg);
keg->uk_freef = freef;
KEG_UNLOCK(keg);