]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linker_kldload_busy(): allow recursion
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 12 Nov 2021 19:45:06 +0000 (21:45 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 28 Nov 2021 08:36:09 +0000 (10:36 +0200)
commit4f924a786ae08af496dfe55230f8fe1e2ca16150
tree55c38d56baee3491229d9e30b961063a0fd81c2e
parentdad71022bd7a8f95ab2ba656bec61e2424a1c3c5
linker_kldload_busy(): allow recursion

Some drivers recursively loads modules by explicit calls to kldload
during initialization, which might occur during kldload.

PR: 259748
Reported and tested by: thj
Reviewed by: markj
Sponsored by: Nvidia networking
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32972
sys/kern/kern_linker.c