summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-06-29 18:25:26 +0000
committerkn <kn@openbsd.org>2020-06-29 18:25:26 +0000
commit1f4256da96ed075585e4adad998c594d4898f197 (patch)
treeabe7c85696214aa93d2c12c772738c00630cac82 /sys
parentBring back revision 1.122 with a fix preventing a use-after-free by (diff)
downloadwireguard-openbsd-1f4256da96ed075585e4adad998c594d4898f197.tar.xz
wireguard-openbsd-1f4256da96ed075585e4adad998c594d4898f197.zip
Fix "init-system" with multiple PCIe root complexes
Contrary to other (single CPU) machines, the Oracle SPARC T4-2 machines come with two CPUs/two PCIe root complexes instead of one. ldomctl already accounts for this and interates over them but lacked a skip condition when iterating over subdevices to avoid linking devices in one complex to those in another. This fixes a NULL dereference in "init-system" on T4-2 machines and makes it produce working machine descriptions (.md files). Testing and confirmation on a T4-1 that single PCIe root complex machines still produce identical MDs with this from tracey, thanks! Reminded by a report on bugs@ from Kokuma who also confirmed this fix on their T4-2.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions