Commit e35b71c4 authored by Federico Vaga's avatar Federico Vaga

drv: fix report error correctly

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent fe4e54aa
......@@ -313,7 +313,7 @@ static int zfad_dma_prep_slave_sg(struct dma_chan *dchan,
zfad_block->sgt.nents,
DMA_DEV_TO_MEM);
if (sg_mapped <= 0) {
err = sg_mapped;
err = sg_mapped ? sg_mapped : -ENOMEM;
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