summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/ata-all.c')
-rw-r--r--sys/dev/ata/ata-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 982fdae..58e954f 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -347,8 +347,8 @@ ata_suspend(device_t dev)
ch->state = ATA_ACTIVE;
gotit = 1;
}
- tsleep(&gotit, PRIBIO, "atasusp", hz/10);
mtx_unlock(&ch->state_mtx);
+ tsleep(&gotit, PRIBIO, "atasusp", hz/10);
}
ch->locking(ch, ATA_LF_UNLOCK);
return 0;
OpenPOWER on IntegriCloud