Commit 46f2dc86 authored by Federico Vaga's avatar Federico Vaga

drv: no sg mapped is a failure

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent f6f91391
......@@ -336,7 +336,7 @@ static int zfad_dma_prep_slave_sg(struct dma_chan *dchan,
zfad_block->sgt.sgl,
zfad_block->sgt.nents,
DMA_DEV_TO_MEM);
if (sg_mapped < 0) {
if (sg_mapped <= 0) {
err = sg_mapped;
goto err_map;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment