OSDN Git Service

crypto: amcc - Hold the reference returned by of_find_compatible_node
authorLiang He <windhl@126.com>
Thu, 30 Jun 2022 08:36:56 +0000 (16:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Jul 2022 07:21:16 +0000 (15:21 +0800)
commit9984a6447389a01cc5e8501b2ead3024b2d99c19
tree5e37faa2d3d23665348ba555f85a542f5f9b4c8f
parentcc8166bfc829043020b5cc3b7cdba02a17d03b6d
crypto: amcc - Hold the reference returned by of_find_compatible_node

In crypto4xx_probe(), we should hold the reference returned by
of_find_compatible_node() and use it to call of_node_put to keep
 refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c