Correct the last commit so it works in error situations as well.
This commit is contained in:
parent
c794eed216
commit
c483b63711
@ -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…
x
Reference in New Issue
Block a user