diff options
| author | Thomas Quinot <thomas@FreeBSD.org> | 2003-05-14 14:20:22 +0000 |
|---|---|---|
| committer | Thomas Quinot <thomas@FreeBSD.org> | 2003-05-14 14:20:22 +0000 |
| commit | b3c957133a96a4811f5569d5743c36cc491f2245 (patch) | |
| tree | a6c62f42d93d414f225d88f383f17215092e6d65 /sys/dev/ata | |
| parent | 1870b993d0f04ab08999bfee401b1b992d3355a4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/atapi-cam.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c index 81c10fc94a93d..2a3f787c76ef8 100644 --- a/sys/dev/ata/atapi-cam.c +++ b/sys/dev/ata/atapi-cam.c @@ -167,7 +167,14 @@ atapi_cam_detach_bus(struct ata_channel *ata_ch) void atapi_cam_reinit_bus(struct ata_channel *ata_ch) { struct atapi_xpt_softc *scp = get_softc(ata_ch); - reinit_bus(scp, RESET); + + /* + * scp might be null if the bus is being reinitialised during + * the boot-up sequence, before the ATAPI bus is registered. + */ + + if (scp != NULL) + reinit_bus(scp, RESET); } static void |
