diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-24 22:43:11 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-24 22:43:11 +0000 |
commit | 79ff2e1a25b342d4c81ef87ee4fe2dfa7b061640 (patch) | |
tree | 1e609a6e3669756e7443b3a2df2ebcf34255e743 /sys/dev/ic/ar5211var.h | |
parent | d62a69783717cebfc1059fc4fdc6db825779f4d4 (diff) |
On O2, the bootpath may omit the pci(0) component and start with scsi(); in
that case, fake the pci(0) part in order to match correctly the onboard scsi
controller.
While there, make sure device_register() returns early for devices attached
to root; without both these changes, an O2 lacking pci(0) in its bootpath
would dereference a NULL pointer when softraid would attach.
Problem found the hard way by Jukka Taimisto (jtaimisto, iki dot fi), thanks
for the report!
Diffstat (limited to 'sys/dev/ic/ar5211var.h')
0 files changed, 0 insertions, 0 deletions