diff options
| author | Frank Li <Frank.Li@nxp.com> | 2025-11-03 16:48:29 -0500 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2025-11-24 15:39:05 +0000 |
| commit | 66db99ffdfcb034d6fae212f2f473a82a842795f (patch) | |
| tree | 52fb20c467ec29013aa70860783e0baf4ee95df3 /scripts/livepatch | |
| parent | de8209e55408d8dbb1e14cc90da3f63b85ea4d36 (diff) | |
perf/imx_ddr: Move ida_alloc() from ddr_perf_init() to ddr_perf_probe()
Move ida_alloc() from helper ddr_perf_init() into ddr_perf_probe() to
clarify why ida_free() must be called at the error path.
Add return value check for ida_alloc().
Rename label 'cpuhp_state_err' to 'idr_free' to make the code clearer,
since two error paths now jump to this label.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/livepatch')
0 files changed, 0 insertions, 0 deletions
