Correct the last commit so it works in error situations as well.

This commit is contained in:
Søren Schmidt 2004-08-07 12:49:28 +00:00
parent 251b8d4557
commit ba0b5c1c3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133266

View File

@ -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;
}