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:
Родитель
85a192e92d
Коммит
bdc17a1bf2
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче