X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Fmips%2Fjazz%2Fjazzdma.c;h=eabddb89d221fe8dcab6ea9a0170afaf666ef697;hb=e07af2626643293fa16df655979e7963250abc63;hp=461457b289828a502f4bb7b0751c68b152486e3a;hpb=4a95857a875e887cc958c92fe9d2cde6184d2ec0;p=linux-2.6-microblaze.git 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; }