diff options
author | Krzysztof Kozlowski <[email protected]> | 2022-04-19 13:34:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-04-22 17:13:54 +0200 |
commit | fb4ac6f18be1a6ac0dfdb25adfcf26462c6e2ac0 (patch) | |
tree | faad32c436ac36d9b377bb6cbe1f737ac062bafa /drivers/base/firmware_loader/main.c | |
parent | 240bf4e665741241983580812a2be1b033f120ee (diff) |
clk: imx: scu: 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: 77d8f3068c63 ("clk: imx: scu: add two cells binding support")
Acked-by: Stephen Boyd <[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