X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=arch%2Fmips%2Fjazz%2Fjazzdma.c;h=eabddb89d221fe8dcab6ea9a0170afaf666ef697;hp=461457b289828a502f4bb7b0751c68b152486e3a;hb=e07af2626643293fa16df655979e7963250abc63;hpb=7032908cd5842af9710de4815a456241b5e6d2d1 diff --git a/arch/mips/jazz/jazzdma.c b/arch/mips/jazz/jazzdma.c index 461457b28982..eabddb89d221 100644 --- a/arch/mips/jazz/jazzdma.c +++ b/arch/mips/jazz/jazzdma.c @@ -552,7 +552,7 @@ static int jazz_dma_map_sg(struct device *dev, struct scatterlist *sglist, dir); sg->dma_address = vdma_alloc(sg_phys(sg), sg->length); if (sg->dma_address == DMA_MAPPING_ERROR) - return 0; + return -EIO; sg_dma_len(sg) = sg->length; }