Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e813407 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

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: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 46fe9155
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment