diff options
author | Nicholas Mc Guire <[email protected]> | 2018-07-02 11:08:16 +0200 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-08-25 01:31:31 +1000 |
commit | 67c3e59443f5fc77be39e2ce0db75fbfa78c7965 (patch) | |
tree | 628e1aaed83282a9a70fe3f737ac37391c2f851f /lib/test-string_helpers.c | |
parent | d012a7190fc1fd72ed48911e77ca97ba4521bccd (diff) |
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: a489043f4626 ("powerpc/pseries: Implement arch_get_random_long() based on H_RANDOM")
Signed-off-by: Nicholas Mc Guire <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions