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:
parent
85a192e92d
commit
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user