Commit 472a9890 authored by Joe Hattori's avatar Joe Hattori Committed by Herbert Xu
Browse files

crypto: ixp4xx - fix OF node reference leaks in init_ixp_crypto()



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: 76f24b4f ("crypto: ixp4xx - Add device tree support")
Signed-off-by: default avatarJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a5a9d959
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment