]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Define PNP info after defining driver modules
authorMark Johnston <markj@FreeBSD.org>
Thu, 21 Jan 2021 19:30:18 +0000 (14:30 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 21 Jan 2021 19:30:18 +0000 (14:30 -0500)
commitaa37baf3d7cf51da92fd367476182802e71838ae
tree672a42ad9e61653529478d5da1eeff36cd9a8af2
parent9e98065cf17d0e4831928a5acbd7bc75a351c7f6
Define PNP info after defining driver modules

PNP info definitions currently have an unfortunate requirement in that
they must follow the associated module definition in the module metadata
linker set.  Otherwise devmatch can segfault while processing the linker
hints file since kldxref maintains the order in the linker set.

A number of drivers violate this requirement.  In some cases this can
cause devmatch(8) to segfault when processing the linker hints file.
Work around the problem for now simply by adjusting the drivers.

Reviewed by: imp
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D28260
sys/arm/ti/am335x/am335x_dmtpps.c
sys/arm/ti/am335x/am335x_ehrpwm.c
sys/dev/gpio/gpioiic.c
sys/dev/gpio/gpiopps.c
sys/dev/gpio/gpioths.c
sys/dev/iicbus/ads111x.c
sys/dev/iicbus/mux/iic_gpiomux.c
sys/dev/iicbus/mux/ltc430x.c
sys/dev/iicbus/mux/pca9547.c
sys/dev/ow/owc_gpiobus.c
sys/dev/pwm/pwmc.c