Properly unload the DMA SG list on errors.
This commit is contained in:
parent
08d97161dc
commit
63e0f3bdf5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user