mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Only reference the firmware module once rather than twice. The extra call
was accidentally added in 1.55 and resulted in an extra reference count being held on the linker file. MFC after: 1 week
This commit is contained in:
parent
4ba3b38b64
commit
bc5521260c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158920
@ -783,7 +783,6 @@ digi_loadmoduledata(struct digi_softc *sc)
|
||||
modlen = strlen(sc->module);
|
||||
modfile = malloc(modlen + 6, M_TEMP, M_WAITOK);
|
||||
snprintf(modfile, modlen + 6, "digi_%s", sc->module);
|
||||
res = linker_reference_module(modfile, NULL, &lf);
|
||||
if ((res = linker_reference_module(modfile, NULL, &lf)) != 0)
|
||||
printf("%s: Failed %d to autoload module\n", modfile, res);
|
||||
free(modfile, M_TEMP);
|
||||
|
Loading…
Reference in New Issue
Block a user