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

In nx842_pseries_init(), 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/nx/nx-common-pseries.c