soc: qcom: smp2p: Use memcpy_toio() to copy to shared memory
Shared memory is device type memory which has strict alignment
requirements. Standard *cpy functions like memcpy() and strcpy() do not
guarantee the correct alignment. The correct *cpy functions to access
device memory with are memcpy_toio() and memcpy_fromio().
Replace a strlcpy() call that was copying a string to shared memory with
a call to memcpy_toio() to guarentee the accesses to device memory are
correctly aligned.
Change-Id: I2d10206b498e199eae2c77888dfb78fe6b8ad978
Signed-off-by:
Jeffrey Hugo <jhugo@codeaurora.org>
Loading
Please register or sign in to comment