2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00

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:
Mike Frysinger 2009-01-07 23:14:38 +08:00 committed by Bryan Wu
parent 85a192e92d
commit bdc17a1bf2

View File

@ -597,8 +597,8 @@ void *dma_memcpy(void *dest, const void *src, size_t size)
rest = size - bulk;
if (bulk)
__dma_memcpy(dest, src, bulk);
addr = __dma_memcpy(dest+bulk, src+bulk, rest);
return addr;
__dma_memcpy(dest+bulk, src+bulk, rest);
return dest;
}
EXPORT_SYMBOL(dma_memcpy);