Use the symbolic name for "modmetadata_set".

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2020-05-19 18:34:50 +00:00
parent b0dede77b1
commit 615a9fb5fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361262

View File

@ -369,8 +369,7 @@ linker_file_register_modules(linker_file_t lf)
sx_assert(&kld_sx, SA_XLOCKED);
if (linker_file_lookup_set(lf, "modmetadata_set", &start,
&stop, NULL) != 0) {
if (linker_file_lookup_set(lf, MDT_SETNAME, &start, &stop, NULL) != 0) {
/*
* This fallback should be unnecessary, but if we get booted
* from boot2 instead of loader and we are missing our