aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-08-06 22:23:53 +0000
committerNate Lawson <njl@FreeBSD.org>2004-08-06 22:23:53 +0000
commitc68afc9d21d0dfb5c854e7969d90e6be00e77cbd (patch)
treebdc33355f0797767465054c8013a200106662d52 /sys/dev/ata
parentcc701b73b80497100a363d496cc881405ee66129 (diff)
Notes
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-lowlevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-lowlevel.c b/sys/dev/ata/ata-lowlevel.c
index e305085f03e2f..e5589e4760f70 100644
--- a/sys/dev/ata/ata-lowlevel.c
+++ b/sys/dev/ata/ata-lowlevel.c
@@ -295,7 +295,7 @@ ata_generic_transaction(struct ata_request *request)
}
/* request finish here */
- if (ch->dma->flags & ATA_DMA_LOADED)
+ if (request->flags & ATA_R_DMA && ch->dma->flags & ATA_DMA_LOADED)
ch->dma->unload(ch);
return ATA_OP_FINISHED;
}