acrn-kernel/drivers/rpmsg
Bjorn Andersson 4a46f52ae8 rpmsg: glink: Release driver_override
[ Upstream commit fb80ef67e8 ]

Upon termination of the rpmsg_device, driver_override needs to be freed
to avoid leaking the potentially assigned string.

Fixes: 42cd402b8f ("rpmsg: Fix kfree() of static memory on setting driver_override")
Fixes: 39e47767ec ("rpmsg: Add driver_override device attribute for rpmsg_device")
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230109223931.1706429-1-quic_bjorande@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:45 +01:00
..
Kconfig
Makefile
mtk_rpmsg.c
qcom_glink_native.c
qcom_glink_native.h
qcom_glink_rpm.c
qcom_glink_smem.c
qcom_glink_ssr.c
qcom_smd.c
rpmsg_char.c
rpmsg_char.h
rpmsg_core.c
rpmsg_ctrl.c
rpmsg_internal.h
rpmsg_ns.c
virtio_rpmsg_bus.c