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:
parent
191a1c203e
commit
bfc0a42650
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64402
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user