diff options
author | sos <sos@FreeBSD.org> | 2004-08-07 12:49:28 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-08-07 12:49:28 +0000 |
commit | c483b637114a95ec313c9530169a2790665bc2e3 (patch) | |
tree | 3704debff9a98b5e44c376ca237fcdcd20f8b369 | |
parent | c794eed216d0b649225d9b92b6187289e7137f63 (diff) | |
download | FreeBSD-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.c | 2 |
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; } |