diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-07-02 19:39:21 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-07-13 13:32:50 +1000 |
| commit | 1c17b601fafb09c9ec074fd097737d20eafe7d63 (patch) | |
| tree | 64b8d65b8d1ada7be85074526f58897b5934a6dc /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 3b67be254bd3d5dbd4360bdabc900fdcbf642d08 (diff) | |
hwrng: ks-sa - Fix runtime PM cleanup on registration failure
ks_sa_rng_probe() enables runtime PM and resumes the device before
registering the hwrng. If devm_hwrng_register() fails, probe returns
without dropping the runtime PM usage count or disabling runtime PM.
Unwind the runtime PM state on the registration failure path, matching
the cleanup done by remove().
Fixes: eb428ee0e3ca ("hwrng: ks-sa - add hw_random driver")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
