diff options
-rw-r--r-- | sys/dev/ata/ata-queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index b438467..283d77e 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -497,6 +497,7 @@ ata_timeout(struct ata_request *request) //request->flags |= ATA_R_DEBUG; ATA_DEBUG_RQ(request, "timeout"); + mtx_lock(&ch->state_mtx); /* * if we have an ATA_ACTIVE request running, we flag the request * ATA_R_TIMEOUT so ata_finish will handle it correctly |