diff --git a/sortix/ata.cpp b/sortix/ata.cpp index 173e6698..d7ffee1d 100644 --- a/sortix/ata.cpp +++ b/sortix/ata.cpp @@ -75,6 +75,8 @@ namespace Sortix void DetectBus(unsigned busid, uint16_t ioport, uint16_t altio) { ATABus* bus = ATA::CreateBus(ioport, altio); + if ( !bus ) + return; DetectDrive(busid, bus, 0); DetectDrive(busid, bus, 1); }