Properly unload the DMA SG list on errors.

This commit is contained in:
sos 2003-10-21 19:25:20 +00:00
parent 08d97161dc
commit 63e0f3bdf5

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