diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-08 15:16:23 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-08 15:16:23 +0000 |
commit | 063786806908e37736b99d757eb1cd58eca3a538 (patch) | |
tree | 8188b1653bbe2ce7ac15fd0f5651111a46ecd808 /sys/arch/sparc64/stand/ofwboot/ofdev.c | |
parent | 98e3d75e2552c7f1eb522392907416b68fadecfa (diff) |
Introduce a disk_lookup() function which calls device_lookup(), before
verifying that the resulting device is present on the disklist. This
avoids a race whereby the disk driver can be accessed as soon as the
softc has been allocated, but before the disk has completed
initialisation and has called disk_attach() (up until this point
dk_label is still a null pointer).
Cut cd(4), sd(4) and wd(4) across to disk_lookup(). All callers of
disk_attach() need to be tested and cut over in due course.
ok deraadt@ krw@
Diffstat (limited to 'sys/arch/sparc64/stand/ofwboot/ofdev.c')
0 files changed, 0 insertions, 0 deletions