aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/firmware_loader/main.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2022-04-19 13:34:35 +0200
committerGreg Kroah-Hartman <[email protected]>2022-04-22 17:13:54 +0200
commit42cd402b8fd4672b692400fe5f9eecd55d2794ac (patch)
tree297c371d808cabbd3983307fe6a7d766f28add66 /drivers/base/firmware_loader/main.c
parente5f89131a06142e91073b6959d91cea73861d40e (diff)
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: 950a7388f02b ("rpmsg: Turn name service into a stand alone driver") Fixes: c0cdc19f84a4 ("rpmsg: Driver for user space endpoint interface") Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/firmware_loader/main.c')
0 files changed, 0 insertions, 0 deletions