Bug 199172 - [patch] wrong KASSERT msg in uma_zone_set_fini/freef()
Summary: [patch] wrong KASSERT msg in uma_zone_set_fini/freef()
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Chagin
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-04-05 13:12 UTC by luke.tw
Modified: 2015-04-14 14:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luke.tw 2015-04-05 13:12:15 UTC
Index: sys/vm/uma_core.c
===================================================================
--- sys/vm/uma_core.c   (revision 281078)
+++ sys/vm/uma_core.c   (working copy)
@@ -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);
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-04-05 18:26:06 UTC
A commit references this bug:

Author: dchagin
Date: Sun Apr  5 18:25:24 UTC 2015
New revision: 281113
URL: https://svnweb.freebsd.org/changeset/base/281113

Log:
  Fix wrong kassert msg in uma.

  PR:		199172
  Submitted by:	luke.tw gmail com
  MFC after:	1 week

Changes:
  head/sys/vm/uma_core.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-04-12 07:24:34 UTC
A commit references this bug:

Author: dchagin
Date: Sun Apr 12 07:24:11 UTC 2015
New revision: 281458
URL: https://svnweb.freebsd.org/changeset/base/281458

Log:
  MFC r281113:
  Fix wrong kassert msg in uma.

  PR:           199172

Changes:
_U  stable/10/
  stable/10/sys/vm/uma_core.c
Comment 3 Dmitry Chagin freebsd_committer freebsd_triage 2015-04-14 14:46:41 UTC
Commited, thanks!