mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
Correct the last commit so it works in error situations as well.
This commit is contained in:
parent
251b8d4557
commit
ba0b5c1c3b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133266
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user