1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

Fix braino in the tsleep call, ata_delayed_attach might be a NULL

pointer..
This commit is contained in:
Søren Schmidt 2000-08-08 14:57:36 +00:00
parent 191a1c203e
commit bfc0a42650
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64402

View File

@ -1284,7 +1284,7 @@ ata_reset(struct ata_softc *scp, int32_t *mask)
if (ata_delayed_attach)
DELAY(100);
else
tsleep(ata_delayed_attach, PRIBIO, "atarst", 1);
tsleep(&ata_delayed_attach, PRIBIO, "atarst", 1);
}
DELAY(1);
outb(scp->altioaddr, ATA_A_4BIT);