Properly unload the DMA SG list on errors.

This commit is contained in:
Søren Schmidt 2003-10-21 19:25:20 +00:00
parent 80344be509
commit 4788059c5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121311

View File

@ -262,6 +262,8 @@ ata_transaction(struct ata_request *request)
}
/* request finish here */
if (request->device->channel->dma->flags & ATA_DMA_ACTIVE)
request->device->channel->dma->unload(request->device->channel);
request->device->channel->running = NULL;
return ATA_OP_FINISHED;
}