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: 950a7388 ("rpmsg: Turn name service into a stand alone driver") Fixes: c0cdc19f ("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>
parent
e5f89131
-
mentioned in commit 79ec08a6
-
mentioned in commit b585daa3
-
mentioned in commit dea7b875
-
mentioned in commit 2f3048f3
-
mentioned in commit c14c6676
-
mentioned in commit dd1d7ff3
-
mentioned in commit 5bbd3469
-
mentioned in commit 41c13a57
-
mentioned in commit 5f1bb9f4
-
mentioned in commit 2e76b4f6
-
mentioned in commit bfd4a664
-
mentioned in commit a82e0fda
-
mentioned in commit e70898ae
-
mentioned in commit 3d147859
-
mentioned in commit cff56d7a
Please register or sign in to comment