Re: [PATCH] crypto: ixp4xx: fix OF node reference leaks in init_ixp_crypto()

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

 



On Sun, Dec 15, 2024 at 04:27:20PM +0900, Joe Hattori wrote:
> init_ixp_crypto() calls of_parse_phandle_with_fixed_args() multiple
> times, but does not release all the obtained refcounts. Fix it by adding
> of_node_put() calls.
> 
> This bug was found by an experimental static analysis tool that I am
> developing.
> 
> Fixes: 76f24b4f46b8 ("crypto: ixp4xx - Add device tree support")
> Signed-off-by: Joe Hattori <joe@xxxxxxxxxxxxxxxxxxxxx>
> ---
>  drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c | 3 +++
>  1 file changed, 3 insertions(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux