]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b52b8d1867bd31b3ca5afc2470acea652e054de
tree5e37faa2d3d23665348ba555f85a542f5f9b4c8f
parente492b9d8f9d0a2608bd7eec1582237166ca4c078
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