On 10.12.2024 1:19 PM, Joe Hattori wrote: > qcom_smem_state_get() leaks an OF node when args.args_count != 1 holds. > Add a of_node_put() call before returning an error. > > This bug was found by an experimental static analysis tool that I am > currently developing. > > Fixes: 9460ae2ff308 ("soc: qcom: Introduce common SMEM state machine code") > Signed-off-by: Joe Hattori <joe@xxxxxxxxxxxxxxxxxxxxx> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> Konrad