]> git.baikalelectronics.ru Git - uboot.git/commit
clk: scmi: fix scmi_clk_get_attibute()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 26 Apr 2022 21:26:31 +0000 (23:26 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 23:37:11 +0000 (19:37 -0400)
commit68fd6e54fc03f4f0746f3cf4e9ce406ccd3010b0
tree5f63753162db219885f33678ebba60a720f36445
parentdafb3d24b37f8b1b5924bcd45c70cfc61ab34bc2
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: 8f136b636a9f ("clk: scmi: register scmi clocks with CCF")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/clk_scmi.c