Re: [PATCH] soc: qcom: smem_state: fix an OF node reference leak in qcom_smem_state_get()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux