diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c index e3946ea09..0a24e417a 100644 --- a/sys/src/9/pc/sdiahci.c +++ b/sys/src/9/pc/sdiahci.c @@ -901,8 +901,10 @@ dstatus(Drive *d, int s) static void configdrive(Drive *d) { - if(ahciconfigdrive(d->ctlr->hba, &d->portc, d->mode) == -1) + if(ahciconfigdrive(d->ctlr->hba, &d->portc, d->mode) == -1){ dstatus(d, Dportreset); + return; + } ilock(d); switch(d->port->sstatus & Smask){