rpmsg: virtio_rpmsg_bus: fix sg_set_buf() when addr is not a valid kernel address
authorLoic Pallardy <loic.pallardy@st.com>
Tue, 28 Mar 2017 11:49:44 +0000 (13:49 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 24 Aug 2017 22:37:28 +0000 (15:37 -0700)
commit9dd87c2af651b09e34eed09e60228a1fd2edf969
tree66659cacce12f13a0c98c550a0b0445420af8e5e
parentf93848f9eeb0f87874b8ba8798570bf391eff17f
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: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Tested-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/virtio_rpmsg_bus.c