From ec6714f5edc3cc40396c2843f98c6f89fbd284fc Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 29 Dec 2012 11:27:24 +0100 Subject: [PATCH] sdahci: fix mistake --- sys/src/9/pc/sdiahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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){