Re: [PATCH 1/1] clk: scmi: fix scmi_clk_get_attibute()

2022-05-05 Thread Tom Rini
On Tue, Apr 26, 2022 at 11:26:31PM +0200, Heinrich Schuchardt wrote: > 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") >

Re: [PATCH 1/1] clk: scmi: fix scmi_clk_get_attibute()

2022-04-30 Thread Sean Anderson
On 4/26/22 5:26 PM, Heinrich Schuchardt wrote: 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

[PATCH 1/1] clk: scmi: fix scmi_clk_get_attibute()

2022-04-26 Thread Heinrich Schuchardt
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 --- drivers/clk/clk_scmi.c | 8 +++- 1 file