android_kernel_sony_sdm845/drivers/rpmsg
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Srinivas Kandagatla ec7ee4d60f rpmsg: smd: do not use mananged resources for endpoints and channels
commit 4a2e84c6ed85434ce7843e4844b4d3263f7e233b upstream.

All the managed resources would be freed by the time release function
is invoked. Handling such memory in qcom_smd_edge_release() would do
bad things.

Found this issue while testing Audio usecase where the dsp is started up
and shutdown in a loop.

This patch fixes this issue by using simple kzalloc for allocating
channel->name and channel which is then freed in qcom_smd_edge_release().

Without this patch restarting a remoteproc would crash the system.
Fixes: 53e2822e56 ("rpmsg: Introduce Qualcomm SMD backend")
Cc: <stable@vger.kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:23:13 +02:00
..
Kconfig rpmsg: smd: fix dependency on QCOM_SMD=n 2016-09-12 07:05:13 -07:00
Makefile rpmsg: Introduce Qualcomm SMD backend 2016-09-08 22:15:26 -07:00
qcom_smd.c rpmsg: smd: do not use mananged resources for endpoints and channels 2018-07-03 11:23:13 +02:00
rpmsg_core.c rpmsg: virtio_rpmsg_bus: fix channel creation 2017-01-26 08:24:44 +01:00
rpmsg_internal.h rpmsg: Hide rpmsg indirection tables 2016-09-08 22:15:24 -07:00
virtio_rpmsg_bus.c rpmsg: Allow callback to return errors 2016-09-08 22:15:25 -07:00