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>
Loading
-
mentioned in commit 1261e4d1
-
mentioned in commit 61796fcd
-
mentioned in commit 81ea53c9
-
mentioned in commit 9697a164
-
mentioned in commit 01b4519a
-
mentioned in commit b1e39dea
-
mentioned in commit 20f1dfc0
-
mentioned in commit 0f4467ff
-
mentioned in commit fa6692ab
-
mentioned in commit ad645b07
-
mentioned in commit 710e41c4
-
mentioned in commit 66531948
Please sign in to comment