]> 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)
commit1b714ddba3c14fdbdae3ef6fb962d7c431d42746
tree5e37faa2d3d23665348ba555f85a542f5f9b4c8f
parentd355986ad10fcbb736557720f19715421ea7eb27
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