]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix missing of_node_put() in rng_init()
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 2 Jul 2018 09:08:16 +0000 (11:08 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Aug 2020 15:31:31 +0000 (01:31 +1000)
commit5d78b6f6b528ab590c6e65612a3dcccbd1338b8a
tree628e1aaed83282a9a70fe3f737ac37391c2f851f
parent066a8aace0c5f86a6f60488ff677bb53935358db
powerpc/pseries: Fix missing of_node_put() in rng_init()

The call to of_find_compatible_node() returns a node pointer with
refcount incremented thus it must be explicitly decremented here
before returning.

Fixes: b42ea56c3f66 ("powerpc/pseries: Implement arch_get_random_long() based on H_RANDOM")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1530522496-14816-1-git-send-email-hofrat@osadl.org
arch/powerpc/platforms/pseries/rng.c