mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Properly unload the DMA SG list on errors.
This commit is contained in:
parent
80344be509
commit
4788059c5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121311
@ -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…
Reference in New Issue
Block a user