mirror of https://gitee.com/openkylin/linux.git
Blackfin arch: dma_memcpy() - do not return NULL when transferring a multiple of 65k
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
85a192e92d
commit
bdc17a1bf2
|
@ -597,8 +597,8 @@ void *dma_memcpy(void *dest, const void *src, size_t size)
|
||||||
rest = size - bulk;
|
rest = size - bulk;
|
||||||
if (bulk)
|
if (bulk)
|
||||||
__dma_memcpy(dest, src, bulk);
|
__dma_memcpy(dest, src, bulk);
|
||||||
addr = __dma_memcpy(dest+bulk, src+bulk, rest);
|
__dma_memcpy(dest+bulk, src+bulk, rest);
|
||||||
return addr;
|
return dest;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dma_memcpy);
|
EXPORT_SYMBOL(dma_memcpy);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue