summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-08-07 12:49:28 +0000
committersos <sos@FreeBSD.org>2004-08-07 12:49:28 +0000
commitc483b637114a95ec313c9530169a2790665bc2e3 (patch)
tree3704debff9a98b5e44c376ca237fcdcd20f8b369
parentc794eed216d0b649225d9b92b6187289e7137f63 (diff)
downloadFreeBSD-src-c483b637114a95ec313c9530169a2790665bc2e3.zip
FreeBSD-src-c483b637114a95ec313c9530169a2790665bc2e3.tar.gz
Correct the last commit so it works in error situations as well.
-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 e5589e4..f747a36 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 (request->flags & ATA_R_DMA && ch->dma->flags & ATA_DMA_LOADED)
+ if (ch->dma && ch->dma->flags & ATA_DMA_LOADED)
ch->dma->unload(ch);
return ATA_OP_FINISHED;
}
OpenPOWER on IntegriCloud