[PATCH v4 09/11] clk: imx: scu: Fix kfree() of static memory on setting driver_override

Stephen Boyd sboyd at kernel.org
Tue Mar 15 21:13:19 CET 2022


Quoting Krzysztof Kozlowski (2022-03-12 05:28:54)
> 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")
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>
> ---

Acked-by: Stephen Boyd <sboyd at kernel.org>


More information about the Alsa-devel mailing list