Skip to content
Commit 9dd87c2a authored by Loic Pallardy's avatar Loic Pallardy Committed by Bjorn Andersson
Browse files

rpmsg: virtio_rpmsg_bus: fix sg_set_buf() when addr is not a valid kernel address



To specify memory for remoteproc, we declare (dma_declare_coherent_memory())
an area which is ioremap'ed to the vmalloc area.  However, this address is
not a kernel address so virt_addr_valid(buf) fails.

Signed-off-by: default avatarLudovic Barre <ludovic.barre@st.com>
Signed-off-by: default avatarLoic Pallardy <loic.pallardy@st.com>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Tested-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent f93848f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment