]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't assume a default (currently 15) value for preloaded klds when
authorattilio <attilio@FreeBSD.org>
Mon, 29 Jun 2009 16:03:18 +0000 (16:03 +0000)
committerattilio <attilio@FreeBSD.org>
Mon, 29 Jun 2009 16:03:18 +0000 (16:03 +0000)
commit84c65084a077e7680cdd38b65a53fd45d668edc6
tree4f6cbaaabcae657f5bb52c646740fcadbadcd338
parent0734bf13fc8e677aa06119f8afef3ec69aea67a0
Don't assume a default (currently 15) value for preloaded klds when
loading hwpmc, but calculate at runtime and allocate the necessary space.
Also the current logic is wrong as it can lead to an endless loop.

Sponsored by:   Sandvine Incorporated
Reported by:    Ryan Stone <rstone at sandvine dot com>
Tested by:      Giovanni Trematerra
                <giovanni dot trematerra at gmail dot com>
Approved by: re (kib)
sys/kern/kern_linker.c