linux/drivers/rpmsg
Krzysztof Kozlowski 42cd402b8f rpmsg: Fix kfree() of static memory on setting driver_override
The driver_override field from platform driver should not be initialized
from static memory (string literal) because the core later kfree() it,
for example when driver_override is set via sysfs.

Use dedicated helper to set driver_override properly.

Fixes: 950a7388f0 ("rpmsg: Turn name service into a stand alone driver")
Fixes: c0cdc19f84 ("rpmsg: Driver for user space endpoint interface")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220419113435.246203-13-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-22 17:13:54 +02:00
..
Kconfig rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl 2022-03-13 11:49:53 -05:00
Makefile rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl 2022-03-13 11:49:53 -05:00
mtk_rpmsg.c rpmsg: Change naming of mediatek rpmsg property 2021-09-27 18:32:06 -05:00
qcom_glink_native.c rpmsg: Update rpmsg_chrdev_register_device function 2022-03-13 11:49:53 -05:00
qcom_glink_native.h rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_rpm.c rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_smem.c rpmsg: glink: Set tail pointer to 0 at end of FIFO 2019-10-11 11:34:12 -07:00
qcom_glink_ssr.c rpmsg: glink: add include of header file 2021-01-05 22:22:40 -06:00
qcom_smd.c rpmsg: Update rpmsg_chrdev_register_device function 2022-03-13 11:49:53 -05:00
rpmsg_char.c rpmsg: char: Introduce the "rpmsg-raw" channel 2022-03-13 11:49:53 -05:00
rpmsg_char.h rpmsg: char: Export eptdev create and destroy functions 2022-03-13 11:49:53 -05:00
rpmsg_core.c rpmsg: Constify local variable in field store macro 2022-04-22 17:13:54 +02:00
rpmsg_ctrl.c rpmsg: ctrl: Introduce new RPMSG_CREATE/RELEASE_DEV_IOCTL controls 2022-03-13 11:49:53 -05:00
rpmsg_internal.h rpmsg: Fix kfree() of static memory on setting driver_override 2022-04-22 17:13:54 +02:00
rpmsg_ns.c rpmsg: Fix kfree() of static memory on setting driver_override 2022-04-22 17:13:54 +02:00
virtio_rpmsg_bus.c rpmsg: Update rpmsg_chrdev_register_device function 2022-03-13 11:49:53 -05:00