commit | ba9c892669e4fc6172a37d2c3ccb6a741bb87e97 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Tue Apr 26 23:26:31 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu May 05 19:37:11 2022 -0400 |
tree | 5f63753162db219885f33678ebba60a720f36445 | |
parent | d4ba0b4a099efbe26a75019851d4b3cee983f107 [diff] |
clk: scmi: fix scmi_clk_get_attibute() Local variable out.name lives on the stack and therefore cannot be returned directly. Move the strdup() call into the function. (Coverity 352460) Fixes: 7c33f78983c3 ("clk: scmi: register scmi clocks with CCF") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>